[gnome-commander] Replacing obsoleted gtk_signal_connect_after() with g_signal_connect_after()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted gtk_signal_connect_after() with g_signal_connect_after()
- Date: Thu, 16 Dec 2010 14:51:06 +0000 (UTC)
commit d4802dc0a534644cc9ccfb0ff3df415f925d18ac
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Thu Dec 16 15:12:56 2010 +0100
Replacing obsoleted gtk_signal_connect_after() with g_signal_connect_after()
src/gnome-cmd-clist.cc | 7 +++----
src/gnome-cmd-quicksearch-popup.cc | 6 ++----
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-clist.cc b/src/gnome-cmd-clist.cc
index 1623fd5..bb66661 100644
--- a/src/gnome-cmd-clist.cc
+++ b/src/gnome-cmd-clist.cc
@@ -544,8 +544,7 @@ static void on_realize (GtkCList *clist, gpointer data)
GTK_WIDGET_UNSET_FLAGS (clist->column[i].button, GTK_CAN_FOCUS);
if (GTK_CLIST (clist)->hadjustment)
- gtk_signal_connect_after (GTK_OBJECT(GTK_CLIST(clist)->hadjustment), "value-changed",
- GTK_SIGNAL_FUNC (on_hadj_value_changed), clist);
+ g_signal_connect_after (GTK_CLIST(clist)->hadjustment, "value-changed", GTK_SIGNAL_FUNC (on_hadj_value_changed), clist);
}
@@ -589,10 +588,10 @@ static void init (GnomeCmdCList *clist)
clist->drag_motion_row = -1;
gtk_clist_set_selection_mode (GTK_CLIST (clist), GTK_SELECTION_SINGLE);
-
+
GTK_CLIST (clist)->focus_row = 0;
- gtk_signal_connect_after (GTK_OBJECT (clist), "scroll-vertical", GTK_SIGNAL_FUNC (on_scroll_vertical), NULL);
+ g_signal_connect_after (clist, "scroll-vertical", G_CALLBACK (on_scroll_vertical), NULL);
g_signal_connect (clist, "realize", G_CALLBACK (on_realize), NULL);
}
diff --git a/src/gnome-cmd-quicksearch-popup.cc b/src/gnome-cmd-quicksearch-popup.cc
index 5a8a991..412346f 100644
--- a/src/gnome-cmd-quicksearch-popup.cc
+++ b/src/gnome-cmd-quicksearch-popup.cc
@@ -279,10 +279,8 @@ static void init (GnomeCmdQuicksearchPopup *popup)
gtk_container_add (GTK_CONTAINER (popup), popup->frame);
g_signal_connect (popup->entry, "key-press-event", G_CALLBACK (on_key_pressed), popup);
- gtk_signal_connect_after (GTK_OBJECT (popup->entry), "key-press-event",
- GTK_SIGNAL_FUNC (on_key_pressed_after), popup);
- gtk_signal_connect_after (GTK_OBJECT (popup->entry), "changed",
- GTK_SIGNAL_FUNC (on_text_changed), popup);
+ g_signal_connect_after (popup->entry, "key-press-event", G_CALLBACK (on_key_pressed_after), popup);
+ g_signal_connect_after (popup->entry, "changed", G_CALLBACK (on_text_changed), popup);
g_signal_connect (popup->entry, "button-press-event", G_CALLBACK (on_button_press), popup);
gtk_widget_show (popup->lbl);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]