diff options
| author | Jan Djärv | 2014-10-19 19:27:53 +0200 |
|---|---|---|
| committer | Jan Djärv | 2014-10-19 19:27:53 +0200 |
| commit | b9bdab7aca16e9928a51a4849fd81fbd5f52882c (patch) | |
| tree | 42a6f8585023962bbfa9585229b37c41186ed9bd /src | |
| parent | 5e3344686af38ea1c4f0556c73f5e0f0279f2ae3 (diff) | |
| download | emacs-b9bdab7aca16e9928a51a4849fd81fbd5f52882c.tar.gz emacs-b9bdab7aca16e9928a51a4849fd81fbd5f52882c.zip | |
* gtkutil.c (create_dialog): Don't use gtk_dialog_get_action_area on
Gt+ >= 3.12, or gtk_misc_set_alignment on Gtk+ >= 3.14.
(make_widget_for_menu_item): Don't use gtk_misc_set_alignment on
Gtk+ >= 3.14 (Bug#18674).
(update_frame_tool_bar): Don't use gtk_misc_set_padding on
Gtk+ >= 3.14 (Bug#18674).
* gtkutil.c (xg_update_menubar, xg_update_menu_item): Only call
g_object_notify for label if Gtk+ >= 2.16 (Bug#16522).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/gtkutil.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 02d7ef0d3a4..8bb9d84ffe0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-10-19 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2014-10-19 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * gtkutil.c (xg_update_menubar, xg_update_menu_item): Only call | ||
| 4 | g_object_notify for label if Gtk+ >= 2.16 (Bug#16522). | ||
| 5 | |||
| 3 | * xterm.h (x_output): Remove net_wm_state_hidden_seen. | 6 | * xterm.h (x_output): Remove net_wm_state_hidden_seen. |
| 4 | 7 | ||
| 5 | * xterm.c (handle_one_xevent): Check return value from | 8 | * xterm.c (handle_one_xevent): Check return value from |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 759219a377d..01360244c2e 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -2816,8 +2816,9 @@ xg_update_menubar (GtkWidget *menubar, | |||
| 2816 | bridge that might be loaded) that the item's label has | 2816 | bridge that might be loaded) that the item's label has |
| 2817 | changed. */ | 2817 | changed. */ |
| 2818 | gtk_label_set_text (wlabel, utf8_label); | 2818 | gtk_label_set_text (wlabel, utf8_label); |
| 2819 | #if GTK_CHECK_VERSION (2, 16, 0) | ||
| 2819 | g_object_notify (G_OBJECT (witem), "label"); | 2820 | g_object_notify (G_OBJECT (witem), "label"); |
| 2820 | 2821 | #endif | |
| 2821 | if (utf8_label) g_free (utf8_label); | 2822 | if (utf8_label) g_free (utf8_label); |
| 2822 | iter = g_list_next (iter); | 2823 | iter = g_list_next (iter); |
| 2823 | val = val->next; | 2824 | val = val->next; |
| @@ -2996,8 +2997,10 @@ xg_update_menu_item (widget_value *val, | |||
| 2996 | } | 2997 | } |
| 2997 | } | 2998 | } |
| 2998 | 2999 | ||
| 3000 | #if GTK_CHECK_VERSION (2, 16, 0) | ||
| 2999 | if (label_changed) /* See comment in xg_update_menubar. */ | 3001 | if (label_changed) /* See comment in xg_update_menubar. */ |
| 3000 | g_object_notify (G_OBJECT (w), "label"); | 3002 | g_object_notify (G_OBJECT (w), "label"); |
| 3003 | #endif | ||
| 3001 | } | 3004 | } |
| 3002 | 3005 | ||
| 3003 | /* Update the toggle menu item W so it corresponds to VAL. */ | 3006 | /* Update the toggle menu item W so it corresponds to VAL. */ |