diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-11-25 08:59:02 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-11-30 13:13:51 +0100 |
commit | 54a7ffeda3e35b13ba61f285af58afd220a11a47 (patch) | |
tree | 6c59541130bc2cba0dcf5609042ee4ce85116683 | |
parent | 63a1079819293d371c09afd89324e8a9d376fa57 (diff) | |
download | nautilus-54a7ffeda3e35b13ba61f285af58afd220a11a47.tar.gz |
Avoid deprecated gtk_button_pressed/released
We replace these with direct use of deprecated signals,
which is not ideal either. However, it makes us not reference
depcrecated symbols and makes it works. I don't know how else
to solve this.
(cherry picked from commit 6ff1e3881e070a0a235208cc10dfdc53e8faa0aa)
-rw-r--r-- | src/nautilus-navigation-action.c | 4 | ||||
-rw-r--r-- | src/nautilus-window-menus.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nautilus-navigation-action.c b/src/nautilus-navigation-action.c index 731811c08..9ac11531b 100644 --- a/src/nautilus-navigation-action.c +++ b/src/nautilus-navigation-action.c @@ -199,7 +199,7 @@ proxy_button_press_event_cb (GtkButton *button, gpointer user_data) { if (event->button == 2) { - gtk_button_pressed (button); + g_signal_emit_by_name (button, "pressed", 0); } return FALSE; @@ -211,7 +211,7 @@ proxy_button_release_event_cb (GtkButton *button, gpointer user_data) { if (event->button == 2) { - gtk_button_released (button); + g_signal_emit_by_name (button, "released", 0); } return FALSE; diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c index b6927e477..372c39600 100644 --- a/src/nautilus-window-menus.c +++ b/src/nautilus-window-menus.c @@ -658,7 +658,7 @@ proxy_button_press_event_cb (GtkButton *button, gpointer user_data) { if (event->button == 2) { - gtk_button_pressed (button); + g_signal_emit_by_name (button, "pressed", 0); } return FALSE; @@ -670,7 +670,7 @@ proxy_button_release_event_cb (GtkButton *button, gpointer user_data) { if (event->button == 2) { - gtk_button_released (button); + g_signal_emit_by_name (button, "released", 0); } return FALSE; |