mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
Only get the indicator-size and indicator-spacing style properties for
2006-08-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstyle.c (option_menu_get_props): Only get the indicator-size and indicator-spacing style properties for GtkOptionMenu. (#349859, Benjamin Otte)
This commit is contained in:
parent
65d844f074
commit
97f4c323eb
@ -1,5 +1,9 @@
|
||||
2006-08-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkstyle.c (option_menu_get_props): Only get the
|
||||
indicator-size and indicator-spacing style properties
|
||||
for GtkOptionMenu. (#349859, Benjamin Otte)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines)
|
||||
(gtk_tree_view_set_enable_tree_lines): Be more careful
|
||||
when creating gcs, also emit change notification.
|
||||
|
@ -1,5 +1,9 @@
|
||||
2006-08-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkstyle.c (option_menu_get_props): Only get the
|
||||
indicator-size and indicator-spacing style properties
|
||||
for GtkOptionMenu. (#349859, Benjamin Otte)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines)
|
||||
(gtk_tree_view_set_enable_tree_lines): Be more careful
|
||||
when creating gcs, also emit change notification.
|
||||
|
@ -30,6 +30,9 @@
|
||||
#include <string.h>
|
||||
#include "gtkgc.h"
|
||||
#include "gtkmarshalers.h"
|
||||
#undef GTK_DISABLE_DEPRECATED
|
||||
#include "gtkoptionmenu.h"
|
||||
#define GTK_DISABLE_DEPRECATED
|
||||
#include "gtkrc.h"
|
||||
#include "gtkspinbutton.h"
|
||||
#include "gtkstyle.h"
|
||||
@ -3221,7 +3224,7 @@ option_menu_get_props (GtkWidget *widget,
|
||||
GtkRequisition *tmp_size = NULL;
|
||||
GtkBorder *tmp_spacing = NULL;
|
||||
|
||||
if (widget)
|
||||
if (GTK_IS_OPTION_MENU (widget))
|
||||
gtk_widget_style_get (widget,
|
||||
"indicator-size", &tmp_size,
|
||||
"indicator-spacing", &tmp_spacing,
|
||||
|
Loading…
Reference in New Issue
Block a user