Use correct signal names in g_signal_connect() - no underscores but hyphens.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 16 Feb 2014 01:33:01 +0000 (03:33 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 16 Feb 2014 01:33:01 +0000 (03:33 +0200)
src/configurator.c
src/plugins/cpu/cpu.c
src/plugins/launchbar.c
src/plugins/taskbar.c
src/plugins/volume/volume-impl.c
src/plugins/volumealsa/volumealsa.c
src/plugins/xkb/xkb-plugin.c

index 3a91e3d..da3f944 100644 (file)
@@ -1019,7 +1019,7 @@ void panel_configure( Panel* p, int sel_page )
     w = (GtkWidget*)gtk_builder_get_object( builder, "icon_size" );
     gtk_spin_button_set_range( GTK_SPIN_BUTTON(w), PANEL_HEIGHT_MIN, PANEL_HEIGHT_MAX );
     gtk_spin_button_set_value( GTK_SPIN_BUTTON(w), p->icon_size );
-    g_signal_connect( w, "value_changed", G_CALLBACK(set_icon_size), p );
+    g_signal_connect( w, "value-changed", G_CALLBACK(set_icon_size), p );
 
     /* properties */
 
index 7857eb5..154dcc4 100644 (file)
@@ -244,8 +244,8 @@ static int cpu_constructor(Plugin * p, char ** fp)
     gdk_color_parse("green",  &c->foreground_color);
 
     /* Connect signals. */
-    g_signal_connect(G_OBJECT(c->da), "configure_event", G_CALLBACK(configure_event), (gpointer) c);
-    g_signal_connect(G_OBJECT(c->da), "expose_event", G_CALLBACK(expose_event), (gpointer) c);
+    g_signal_connect(G_OBJECT(c->da), "configure-event", G_CALLBACK(configure_event), (gpointer) c);
+    g_signal_connect(G_OBJECT(c->da), "expose-event", G_CALLBACK(expose_event), (gpointer) c);
     g_signal_connect(c->da, "button-press-event", G_CALLBACK(plugin_button_press_event), p);
 
     /* Show the widget.  Connect a timer to refresh the statistics. */
index cd0ebac..6aabc8b 100644 (file)
@@ -298,7 +298,7 @@ static LaunchButton *launchbutton_build_gui(LaunchbarPlugin * lb, FmPath * id)
 
     /* Connect signals. */
     g_signal_connect(button, "button-press-event", G_CALLBACK(launchbutton_press_event), (gpointer) btn);
-    g_signal_connect(button, "drag_data_received", G_CALLBACK(launchbutton_drag_data_received_event), (gpointer) btn);
+    g_signal_connect(button, "drag-data-received", G_CALLBACK(launchbutton_drag_data_received_event), (gpointer) btn);
 
     /* If the list goes from null to non-null, remove the bootstrap button. */
     if ((lb->buttons == NULL) && (lb->bootstrap_button != NULL))
index cda5080..405fe7d 100644 (file)
@@ -1930,10 +1930,10 @@ static void taskbar_build_gui(Plugin * p)
     /* Connect signals to receive root window events and initialize root window properties. */
     tb->number_of_desktops = get_net_number_of_desktops();
     tb->current_desktop = get_net_current_desktop();
-    g_signal_connect(G_OBJECT(fbev), "current_desktop", G_CALLBACK(taskbar_net_current_desktop), (gpointer) tb);
-    g_signal_connect(G_OBJECT(fbev), "active_window", G_CALLBACK(taskbar_net_active_window), (gpointer) tb);
-    g_signal_connect(G_OBJECT(fbev), "number_of_desktops", G_CALLBACK(taskbar_net_number_of_desktops), (gpointer) tb);
-    g_signal_connect(G_OBJECT(fbev), "client_list", G_CALLBACK(taskbar_net_client_list), (gpointer) tb);
+    g_signal_connect(G_OBJECT(fbev), "current-desktop", G_CALLBACK(taskbar_net_current_desktop), (gpointer) tb);
+    g_signal_connect(G_OBJECT(fbev), "active-window", G_CALLBACK(taskbar_net_active_window), (gpointer) tb);
+    g_signal_connect(G_OBJECT(fbev), "number-of-desktops", G_CALLBACK(taskbar_net_number_of_desktops), (gpointer) tb);
+    g_signal_connect(G_OBJECT(fbev), "client-list", G_CALLBACK(taskbar_net_client_list), (gpointer) tb);
 
     /* Make right-click menu for task buttons.
      * It is retained for the life of the taskbar and will be shown as needed.
index 6739d02..9c6f437 100644 (file)
@@ -129,7 +129,7 @@ create_volume_window (void)
 
        gtk_box_pack_start (GTK_BOX (hbox1), spinbutton1, TRUE, FALSE, 0);
        gtk_widget_set_size_request (spinbutton1, -1, 22);
-       g_signal_connect ((gpointer) spinbutton1, "value_changed",
+       g_signal_connect ((gpointer) spinbutton1, "value-changed",
                          G_CALLBACK (on_spinbutton1_button_release_event),
                          NULL);
        g_object_set_data_full(G_OBJECT (volume_window), "spinbutton1", 
@@ -145,7 +145,7 @@ create_volume_window (void)
        gtk_range_set_inverted (GTK_RANGE (vscale1), TRUE);
        gtk_box_pack_start (GTK_BOX (hbox3), vscale1, TRUE, TRUE, 0);
        gtk_scale_set_draw_value (GTK_SCALE (vscale1), FALSE);
-       g_signal_connect ((gpointer) vscale1, "button_release_event",
+       g_signal_connect ((gpointer) vscale1, "button-release-event",
                          G_CALLBACK (on_vscale1_button_release_event),
                          vol_adjustment);
        g_object_set_data_full(G_OBJECT (volume_window), "vscale1",
index 1bb6582..66b61cd 100644 (file)
@@ -480,7 +480,7 @@ static void volumealsa_build_popup_window(Plugin * p)
     gtk_window_set_type_hint(GTK_WINDOW(vol->popup_window), GDK_WINDOW_TYPE_HINT_DIALOG);
 
     /* Connect signals. */
-    g_signal_connect(G_OBJECT(vol->popup_window), "focus_out_event", G_CALLBACK(volumealsa_popup_focus_out), vol);
+    g_signal_connect(G_OBJECT(vol->popup_window), "focus-out-event", G_CALLBACK(volumealsa_popup_focus_out), vol);
     g_signal_connect(G_OBJECT(vol->popup_window), "map", G_CALLBACK(volumealsa_popup_map), vol);
 
     /* Create a scrolled window as the child of the top level window. */
@@ -514,7 +514,7 @@ static void volumealsa_build_popup_window(Plugin * p)
     gtk_box_pack_start(GTK_BOX(box), vol->volume_scale, TRUE, TRUE, 0);
 
     /* Value-changed and scroll-event signals. */
-    vol->volume_scale_handler = g_signal_connect(vol->volume_scale, "value_changed", G_CALLBACK(volumealsa_popup_scale_changed), vol);
+    vol->volume_scale_handler = g_signal_connect(vol->volume_scale, "value-changed", G_CALLBACK(volumealsa_popup_scale_changed), vol);
     g_signal_connect(vol->volume_scale, "scroll-event", G_CALLBACK(volumealsa_popup_scale_scrolled), vol);
 
     /* Create a check button as the child of the vertical box. */
index 411c155..2432374 100644 (file)
@@ -356,7 +356,7 @@ static int xkb_constructor(Plugin * p_plugin, char ** fp)
     /* Connect signals. */
     g_signal_connect(p_plugin->pwid, "button-press-event", G_CALLBACK(on_xkb_button_press_event), p_xkb);
     g_signal_connect(p_plugin->pwid, "scroll-event", G_CALLBACK(on_xkb_button_scroll_event), p_xkb);
-    g_signal_connect(G_OBJECT(fbev), "active_window", G_CALLBACK(on_xkb_fbev_active_window_event), p_xkb);
+    g_signal_connect(G_OBJECT(fbev), "active-window", G_CALLBACK(on_xkb_fbev_active_window_event), p_xkb);
 
     /* Show the widget and return. */
     xkb_redraw(p_xkb);