From dc37d79d6e2797f7f613051261466b93fc01107d Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 18 Dec 2021 14:52:15 +0100 Subject: Use dashes instead of underscores in signal names --- accessx-status/src/applet.c | 10 +++++----- battstat/battstat_applet.c | 4 ++-- charpick/charpick.c | 14 +++++++------- drivemount/src/drive-list.c | 12 ++++++------ drivemount/src/drivemount.c | 6 +++--- mateweather/src/mateweather-applet.c | 8 ++++---- mateweather/src/mateweather-pref.c | 2 +- multiload/src/load-graph.c | 2 +- multiload/src/main.c | 8 ++++---- netspeed/src/netspeed.c | 10 +++++----- 10 files changed, 38 insertions(+), 38 deletions(-) diff --git a/accessx-status/src/applet.c b/accessx-status/src/applet.c index c24a6561..88239c7f 100644 --- a/accessx-status/src/applet.c +++ b/accessx-status/src/applet.c @@ -1633,16 +1633,16 @@ accessx_status_applet_fill (MatePanelApplet* applet) } g_object_connect (sapplet->applet, - "signal::destroy", accessx_status_applet_destroy, sapplet, - "signal::change_orient", accessx_status_applet_reorient, sapplet, - "signal::change_size", accessx_status_applet_resize, sapplet, + "destroy", accessx_status_applet_destroy, sapplet, + "change-orient", accessx_status_applet_reorient, sapplet, + "change-size", accessx_status_applet_resize, sapplet, NULL); - g_signal_connect (sapplet->applet, "button_press_event", + g_signal_connect (sapplet->applet, "button-press-event", G_CALLBACK (button_press_cb), sapplet); - g_signal_connect (sapplet->applet, "key_press_event", + g_signal_connect (sapplet->applet, "key-press-event", G_CALLBACK (key_press_cb), sapplet); diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index 41f29fa0..e3c83ac3 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -1093,11 +1093,11 @@ create_layout (ProgressData *battstat) G_CALLBACK (destroy_applet), battstat); - g_signal_connect (battstat->applet, "change_orient", + g_signal_connect (battstat->applet, "change-orient", G_CALLBACK (change_orient), battstat); - g_signal_connect (battstat->applet, "size_allocate", + g_signal_connect (battstat->applet, "size-allocate", G_CALLBACK (size_allocate), battstat); diff --git a/charpick/charpick.c b/charpick/charpick.c index d428931c..46b2dad8 100644 --- a/charpick/charpick.c +++ b/charpick/charpick.c @@ -442,7 +442,7 @@ build_table (charpick_data *p_curr_data) G_CALLBACK (chooser_button_clicked), p_curr_data); - g_signal_connect (button, "button_press_event", + g_signal_connect (button, "button-press-event", G_CALLBACK (button_press_hack), p_curr_data->applet); } @@ -493,7 +493,7 @@ build_table (charpick_data *p_curr_data) G_CALLBACK (toggle_button_toggled_cb), p_curr_data); - g_signal_connect (toggle_button[i], "button_press_event", + g_signal_connect (toggle_button[i], "button-press-event", G_CALLBACK (button_press_hack), p_curr_data->applet); } @@ -796,7 +796,7 @@ charpicker_applet_fill (MatePanelApplet *applet) || (orientation == MATE_PANEL_APPLET_ORIENT_RIGHT); build_table (curr_data); - g_signal_connect (curr_data->applet, "key_press_event", + g_signal_connect (curr_data->applet, "key-press-event", G_CALLBACK (key_press_event), curr_data); utf8_atom = gdk_atom_intern ("UTF8_STRING", FALSE); @@ -812,21 +812,21 @@ charpicker_applet_fill (MatePanelApplet *applet) GDK_SELECTION_CLIPBOARD, utf8_atom, 0); - g_signal_connect (curr_data->invisible, "selection_get", + g_signal_connect (curr_data->invisible, "selection-get", G_CALLBACK (charpick_selection_handler), curr_data); - g_signal_connect (curr_data->invisible, "selection_clear_event", + g_signal_connect (curr_data->invisible, "selection-clear-event", G_CALLBACK (selection_clear_cb), curr_data); make_applet_accessible (GTK_WIDGET (applet)); /* session save signal */ - g_signal_connect (applet, "change_orient", + g_signal_connect (applet, "change-orient", G_CALLBACK (applet_change_orient), curr_data); - g_signal_connect (applet, "size_allocate", + g_signal_connect (applet, "size-allocate", G_CALLBACK (applet_size_allocate), curr_data); g_signal_connect (applet, "destroy", diff --git a/drivemount/src/drive-list.c b/drivemount/src/drive-list.c index c8a0b2f7..21d5ee5c 100644 --- a/drivemount/src/drive-list.c +++ b/drivemount/src/drive-list.c @@ -87,17 +87,17 @@ drive_list_init (DriveList *self) if (!volume_monitor) volume_monitor = g_volume_monitor_get (); - g_signal_connect_object (volume_monitor, "mount_added", + g_signal_connect_object (volume_monitor, "mount-added", G_CALLBACK (mount_added), self, 0); - g_signal_connect_object (volume_monitor, "mount_changed", + g_signal_connect_object (volume_monitor, "mount-changed", G_CALLBACK (mount_changed), self, 0); - g_signal_connect_object (volume_monitor, "mount_removed", + g_signal_connect_object (volume_monitor, "mount-removed", G_CALLBACK (mount_removed), self, 0); - g_signal_connect_object (volume_monitor, "volume_added", + g_signal_connect_object (volume_monitor, "volume-added", G_CALLBACK (volume_added), self, 0); - g_signal_connect_object (volume_monitor, "volume_changed", + g_signal_connect_object (volume_monitor, "volume-changed", G_CALLBACK (volume_changed), self, 0); - g_signal_connect_object (volume_monitor, "volume_removed", + g_signal_connect_object (volume_monitor, "volume-removed", G_CALLBACK (volume_removed), self, 0); volumes = g_volume_monitor_get_volumes (volume_monitor); for (tmp = volumes; tmp != NULL; tmp = tmp->next) { diff --git a/drivemount/src/drivemount.c b/drivemount/src/drivemount.c index fa2857a1..a425237b 100644 --- a/drivemount/src/drivemount.c +++ b/drivemount/src/drivemount.c @@ -189,11 +189,11 @@ applet_factory (MatePanelApplet *applet, gtk_container_add (GTK_CONTAINER (applet), drive_list); - g_signal_connect_object (applet, "change_orient", + g_signal_connect_object (applet, "change-orient", G_CALLBACK (change_orient), drive_list, 0); - g_signal_connect_object (applet, "size_allocate", + g_signal_connect_object (applet, "size-allocate", G_CALLBACK (size_allocate), drive_list, 0); - g_signal_connect (applet, "change_background", + g_signal_connect (applet, "change-background", G_CALLBACK (change_background), drive_list); /* set initial state */ diff --git a/mateweather/src/mateweather-applet.c b/mateweather/src/mateweather-applet.c index 098b620d..4000b692 100644 --- a/mateweather/src/mateweather-applet.c +++ b/mateweather/src/mateweather-applet.c @@ -345,11 +345,11 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet) gtk_window_set_default_icon_name ("weather-storm"); - g_signal_connect (gw_applet->applet, "change_orient", + g_signal_connect (gw_applet->applet, "change-orient", G_CALLBACK (change_orient_cb), gw_applet); - g_signal_connect (gw_applet->applet, "size_allocate", + g_signal_connect (gw_applet->applet, "size-allocate", G_CALLBACK (size_allocate_cb), gw_applet); @@ -357,11 +357,11 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet) G_CALLBACK (applet_destroy), gw_applet); - g_signal_connect (gw_applet->applet, "button_press_event", + g_signal_connect (gw_applet->applet, "button-press-event", G_CALLBACK(clicked_cb), gw_applet); - g_signal_connect (gw_applet->applet, "key_press_event", + g_signal_connect (gw_applet->applet, "key-press-event", G_CALLBACK (key_press_cb), gw_applet); diff --git a/mateweather/src/mateweather-pref.c b/mateweather/src/mateweather-pref.c index 32314f37..2f5b268f 100644 --- a/mateweather/src/mateweather-pref.c +++ b/mateweather/src/mateweather-pref.c @@ -1174,7 +1174,7 @@ mateweather_pref_create (MateWeatherPref* pref) #ifdef RADARMAP g_signal_connect (pref->priv->basic_radar_btn, "toggled", G_CALLBACK (on_radar_toggled), pref); g_signal_connect (pref->priv->basic_radar_url_btn, "toggled", G_CALLBACK (on_use_radar_url_toggled), pref); - g_signal_connect (pref->priv->basic_radar_url_entry, "focus_out_event", G_CALLBACK (on_radar_url_changed), pref); + g_signal_connect (pref->priv->basic_radar_url_entry, "focus-out-event", G_CALLBACK (on_radar_url_changed), pref); #endif /* RADARMAP */ #ifdef HAVE_LIBNOTIFY g_signal_connect (pref->priv->basic_show_notifications_btn, "toggled", G_CALLBACK (on_show_notifications_toggled), pref); diff --git a/multiload/src/load-graph.c b/multiload/src/load-graph.c index 67fc09cd..e8ca8bd3 100644 --- a/multiload/src/load-graph.c +++ b/multiload/src/load-graph.c @@ -472,7 +472,7 @@ load_graph_new (MultiloadApplet *ma, guint n, const gchar *label, g_signal_connect (g->disp, "draw", G_CALLBACK (load_graph_expose), g); - g_signal_connect (g->disp, "configure_event", + g_signal_connect (g->disp, "configure-event", G_CALLBACK (load_graph_configure), g); g_signal_connect (g->disp, "destroy", G_CALLBACK (load_graph_destroy), g); diff --git a/multiload/src/main.c b/multiload/src/main.c index 1f2ac814..a80d9145 100644 --- a/multiload/src/main.c +++ b/multiload/src/main.c @@ -533,15 +533,15 @@ multiload_applet_new(MatePanelApplet *applet, const gchar *iid, gpointer data) g_object_unref (action_group); - g_signal_connect (applet, "change_size", + g_signal_connect (applet, "change-size", G_CALLBACK (multiload_change_size_cb), ma); - g_signal_connect (applet, "change_orient", + g_signal_connect (applet, "change-orient", G_CALLBACK (multiload_change_orient_cb), ma); g_signal_connect (applet, "destroy", G_CALLBACK (multiload_destroy_cb), ma); - g_signal_connect (applet, "button_press_event", + g_signal_connect (applet, "button-press-event", G_CALLBACK (multiload_button_press_event_cb), ma); - g_signal_connect (applet, "key_press_event", + g_signal_connect (applet, "key-press-event", G_CALLBACK (multiload_key_press_event_cb), ma); atk_obj = gtk_widget_get_accessible (GTK_WIDGET (applet)); diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index 5982059e..60e2aec7 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -1681,7 +1681,7 @@ netspeed_applet_factory (MatePanelApplet *applet, (GSourceFunc)timeout_function, netspeed); - g_signal_connect (applet, "change_size", + g_signal_connect (applet, "change-size", G_CALLBACK (applet_change_size_or_orient), netspeed); @@ -1689,19 +1689,19 @@ netspeed_applet_factory (MatePanelApplet *applet, G_CALLBACK (icon_theme_changed_cb), netspeed); - g_signal_connect (applet, "change_orient", + g_signal_connect (applet, "change-orient", G_CALLBACK (applet_change_size_or_orient), netspeed); - g_signal_connect (netspeed->in_label, "size_allocate", + g_signal_connect (netspeed->in_label, "size-allocate", G_CALLBACK (label_size_allocate_cb), netspeed); - g_signal_connect (netspeed->out_label, "size_allocate", + g_signal_connect (netspeed->out_label, "size-allocate", G_CALLBACK (label_size_allocate_cb), netspeed); - g_signal_connect (netspeed->sum_label, "size_allocate", + g_signal_connect (netspeed->sum_label, "size-allocate", G_CALLBACK (label_size_allocate_cb), netspeed); -- cgit v1.2.1