[gnome-commander] Replacing obsoleted gtk_signal_emit_stop_by_name() with g_signal_stop_emission_by_name()



commit c8dff19ed29d0b81d1c6e750340034c56fd10330
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Fri Jun 10 22:07:26 2011 +0200

    Replacing obsoleted gtk_signal_emit_stop_by_name() with g_signal_stop_emission_by_name()

 src/gnome-cmd-combo.cc |    2 +-
 src/utils.cc           |    2 +-
 src/utils.h            |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-combo.cc b/src/gnome-cmd-combo.cc
index ae3e300..808efe1 100644
--- a/src/gnome-cmd-combo.cc
+++ b/src/gnome-cmd-combo.cc
@@ -275,7 +275,7 @@ static gboolean on_list_button_press (GtkCList *clist, GdkEventButton *event, Gn
         clist->focus_row = row;
     }
     else
-        gtk_signal_emit_stop_by_name (GTK_OBJECT (clist), "button-press-event");
+        g_signal_stop_emission_by_name (clist, "button-press-event");
 
     return TRUE;
 }
diff --git a/src/utils.cc b/src/utils.cc
index 9ab09c3..4693070 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -150,7 +150,7 @@ static gboolean delete_event_callback (gpointer data, gpointer user_data)
 {
     g_return_val_if_fail (GTK_IS_DIALOG (data), FALSE);
 
-    gtk_signal_emit_stop_by_name (GTK_OBJECT (data), "delete-event");
+    g_signal_stop_emission_by_name (data, "delete-event");
 
     return TRUE;
 }
diff --git a/src/utils.h b/src/utils.h
index bf89871..6c39ae2 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -189,7 +189,7 @@ gchar *unquote_if_needed (const gchar *in);
 
 inline void stop_kp (GtkObject *obj)
 {
-    gtk_signal_emit_stop_by_name (obj, "key-press-event");
+    g_signal_stop_emission_by_name (obj, "key-press-event");
 }
 
 GList *string_history_add (GList *in, const gchar *value, guint maxsize);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]