aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/gtkutil.c13
2 files changed, 14 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0193bebf924..5c66a973443 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
4 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6 is deprecated.
7
12009-04-18 Andreas Schwab <schwab@linux-m68k.org> 82009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2 9
3 * font.c (font_put_frame_data): Use xfree instead of free. 10 * font.c (font_put_frame_data): Use xfree instead of free.
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 6d73c0358f0..41f2518af83 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -3568,7 +3568,7 @@ xg_tool_bar_menu_proxy (toolitem, user_data)
3568 3568
3569 g_signal_connect (G_OBJECT (wmenuitem), 3569 g_signal_connect (G_OBJECT (wmenuitem),
3570 "activate", 3570 "activate",
3571 GTK_SIGNAL_FUNC (xg_tool_bar_proxy_callback), 3571 G_CALLBACK (xg_tool_bar_proxy_callback),
3572 user_data); 3572 user_data);
3573 3573
3574 g_object_set_data (G_OBJECT (wmenuitem), XG_TOOL_BAR_PROXY_BUTTON, 3574 g_object_set_data (G_OBJECT (wmenuitem), XG_TOOL_BAR_PROXY_BUTTON,
@@ -4018,11 +4018,11 @@ update_frame_tool_bar (f)
4018 4018
4019 /* The EMACS_INT cast avoids a warning. */ 4019 /* The EMACS_INT cast avoids a warning. */
4020 g_signal_connect (G_OBJECT (ti), "create-menu-proxy", 4020 g_signal_connect (G_OBJECT (ti), "create-menu-proxy",
4021 GTK_SIGNAL_FUNC (xg_tool_bar_menu_proxy), 4021 G_CALLBACK (xg_tool_bar_menu_proxy),
4022 (gpointer) (EMACS_INT) i); 4022 (gpointer) (EMACS_INT) i);
4023 4023
4024 g_signal_connect (G_OBJECT (wbutton), "clicked", 4024 g_signal_connect (G_OBJECT (wbutton), "clicked",
4025 GTK_SIGNAL_FUNC (xg_tool_bar_callback), 4025 G_CALLBACK (xg_tool_bar_callback),
4026 (gpointer) (EMACS_INT) i); 4026 (gpointer) (EMACS_INT) i);
4027 4027
4028 gtk_widget_show_all (GTK_WIDGET (ti)); 4028 gtk_widget_show_all (GTK_WIDGET (ti));
@@ -4044,7 +4044,7 @@ update_frame_tool_bar (f)
4044 no distinction based on modifiers in the activate callback, 4044 no distinction based on modifiers in the activate callback,
4045 so we have to do it ourselves. */ 4045 so we have to do it ourselves. */
4046 g_signal_connect (wbutton, "button-release-event", 4046 g_signal_connect (wbutton, "button-release-event",
4047 GTK_SIGNAL_FUNC (xg_tool_bar_button_cb), 4047 G_CALLBACK (xg_tool_bar_button_cb),
4048 NULL); 4048 NULL);
4049 4049
4050 g_object_set_data (G_OBJECT (wbutton), XG_FRAME_DATA, (gpointer)f); 4050 g_object_set_data (G_OBJECT (wbutton), XG_FRAME_DATA, (gpointer)f);
@@ -4217,12 +4217,13 @@ xg_initialize ()
4217 4217
4218 /* Make dialogs close on C-g. Since file dialog inherits from 4218 /* Make dialogs close on C-g. Since file dialog inherits from
4219 dialog, this works for them also. */ 4219 dialog, this works for them also. */
4220 binding_set = gtk_binding_set_by_class (gtk_type_class (GTK_TYPE_DIALOG)); 4220 binding_set = gtk_binding_set_by_class (g_type_class_ref (GTK_TYPE_DIALOG));
4221 gtk_binding_entry_add_signal (binding_set, GDK_g, GDK_CONTROL_MASK, 4221 gtk_binding_entry_add_signal (binding_set, GDK_g, GDK_CONTROL_MASK,
4222 "close", 0); 4222 "close", 0);
4223 4223
4224 /* Make menus close on C-g. */ 4224 /* Make menus close on C-g. */
4225 binding_set = gtk_binding_set_by_class (gtk_type_class (GTK_TYPE_MENU_SHELL)); 4225 binding_set = gtk_binding_set_by_class (g_type_class_ref
4226 (GTK_TYPE_MENU_SHELL));
4226 gtk_binding_entry_add_signal (binding_set, GDK_g, GDK_CONTROL_MASK, 4227 gtk_binding_entry_add_signal (binding_set, GDK_g, GDK_CONTROL_MASK,
4227 "cancel", 0); 4228 "cancel", 0);
4228} 4229}