[nautilus] Avoid deprecated gtk_button_pressed/released
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Avoid deprecated gtk_button_pressed/released
- Date: Wed, 25 Nov 2009 08:09:02 +0000 (UTC)
commit 6ff1e3881e070a0a235208cc10dfdc53e8faa0aa
Author: Alexander Larsson <alexl redhat com>
Date: Wed Nov 25 08:59:02 2009 +0100
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.
src/nautilus-navigation-action.c | 4 ++--
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 731811c..9ac1153 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 b6927e4..372c396 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]