summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2004-09-16 23:18:22 +0000
committerKjartan Maraas <kmaraas@src.gnome.org>2004-09-16 23:18:22 +0000
commit43cc3b8606d00f0f0eee5d6444d7943fced59ffb (patch)
tree36254f601c17f750fba63a734c736159f1ed9db2 /src/tools
parent9d9c74449004747a74110301e888f40b5f78d81f (diff)
downloadmetacity-43cc3b8606d00f0f0eee5d6444d7943fced59ffb.tar.gz
metacity-43cc3b8606d00f0f0eee5d6444d7943fced59ffb.tar.bz2
A load of fixes of issues reported by sparse. Closes bug #152849
2004-09-17 Kjartan Maraas <kmaraas@gnome.org> * src/bell.c: (meta_bell_flash_screen): * src/compositor.c: * src/effects.c: (meta_effects_draw_box_animation): * src/fixedtip.c: (meta_fixed_tip_show): * src/frame.c: (find_argb_visual): * src/frames.c: (unsigned_long_hash), (meta_frames_manage_window), (meta_frames_apply_shapes): * src/iconcache.c: (find_largest_sizes), (find_best_size): * src/keybindings.c: (meta_spawn_command_line_async_on_screen): * src/main.c: (main): * src/menu.c: (meta_window_menu_new): * src/prefs.c: (meta_prefs_get_visual_bell), (meta_prefs_bell_is_audible), (meta_prefs_get_visual_bell_type), (meta_prefs_get_action_double_click_titlebar), (meta_prefs_get_auto_raise), (meta_prefs_get_auto_raise_delay), (meta_prefs_get_reduced_resources): * src/screen.c: (meta_create_offscreen_window): * src/tabpopup.c: (meta_ui_tab_popup_get_selected): * src/theme-parser.c: (meta_theme_load): * src/theme.c: (meta_gtk_widget_get_font_desc): * src/tools/metacity-mag.c: (mouse_press), (begin_area_grab): * src/util.c: (meta_unsigned_long_hash): A load of fixes of issues reported by sparse. Closes bug #152849
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/metacity-mag.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/tools/metacity-mag.c b/src/tools/metacity-mag.c
index 1e00eff..9549896 100644
--- a/src/tools/metacity-mag.c
+++ b/src/tools/metacity-mag.c
@@ -211,12 +211,10 @@ mouse_press (GtkWidget *invisible,
if (event->type == GDK_BUTTON_PRESS &&
event->button == 1)
{
- gtk_signal_connect (GTK_OBJECT (invisible), "motion_notify_event",
- GTK_SIGNAL_FUNC (mouse_motion),
- NULL);
- gtk_signal_connect (GTK_OBJECT (invisible), "button_release_event",
- GTK_SIGNAL_FUNC (mouse_release),
- NULL);
+ g_signal_connect (invisible, "motion_notify_event",
+ G_CALLBACK (mouse_motion), NULL);
+ g_signal_connect (invisible, "button_release_event",
+ G_CALLBACK (mouse_release), NULL);
gtk_signal_disconnect_by_func (GTK_OBJECT (invisible),
GTK_SIGNAL_FUNC (mouse_press),
NULL);
@@ -264,10 +262,10 @@ begin_area_grab (void)
gtk_grab_add (grab_widget);
- gtk_signal_connect (GTK_OBJECT (grab_widget), "button_press_event",
- GTK_SIGNAL_FUNC (mouse_press), NULL);
- gtk_signal_connect (GTK_OBJECT (grab_widget), "key_press_event",
- GTK_SIGNAL_FUNC (key_press), NULL);
+ g_signal_connect (grab_widget, "button_press_event",
+ G_CALLBACK (mouse_press), NULL);
+ g_signal_connect (grab_widget, "key_press_event",
+ G_CALLBACK (key_press), NULL);
}
int