diff options
author | 2010-07-03 12:11:49 +0000 | |
---|---|---|
committer | 2010-07-03 12:11:49 +0000 | |
commit | d9db77bd4dc0dfd624f1978231c3cb29b2b0455a (patch) | |
tree | 90095ab6980dc938bb908e365fab850f03ea400f /media-radio/xdx/files | |
parent | initial ebuild, thanks to Gábor Vészi (diff) | |
download | gentoo-2-d9db77bd4dc0dfd624f1978231c3cb29b2b0455a.tar.gz gentoo-2-d9db77bd4dc0dfd624f1978231c3cb29b2b0455a.tar.bz2 gentoo-2-d9db77bd4dc0dfd624f1978231c3cb29b2b0455a.zip |
Fix for deprecated macro in GTK+-2.20 and later (bug #326627). Thanks Diego and Kevin.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'media-radio/xdx/files')
-rw-r--r-- | media-radio/xdx/files/xdx-gtk-2.20.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/media-radio/xdx/files/xdx-gtk-2.20.patch b/media-radio/xdx/files/xdx-gtk-2.20.patch new file mode 100644 index 000000000000..2b3c7655e152 --- /dev/null +++ b/media-radio/xdx/files/xdx-gtk-2.20.patch @@ -0,0 +1,34 @@ +# fix for bug #326627 deprecated macro from gtk+-2.20 on +diff -Nur xdx-2.4.2.orig//src/gui.c xdx-2.4.2//src/gui.c +--- xdx-2.4.2.orig//src/gui.c 2010-07-03 11:09:59.000000000 +0000 ++++ xdx-2.4.2//src/gui.c 2010-07-03 11:10:45.000000000 +0000 +@@ -841,7 +841,7 @@ + GtkWidget *mainentry; + + mainentry = g_object_get_data (G_OBJECT (gui->window), "mainentry"); +- if (GTK_WIDGET_HAS_FOCUS(mainentry)) ++ if (gtk_widget_has_focus(mainentry)) + { + switch (event->keyval) + { +diff -Nur xdx-2.4.2.orig//src/text.c xdx-2.4.2//src/text.c +--- xdx-2.4.2.orig//src/text.c 2010-07-03 11:09:59.000000000 +0000 ++++ xdx-2.4.2//src/text.c 2010-07-03 11:11:16.000000000 +0000 +@@ -528,7 +528,7 @@ + + + /* focusing the treeview will stop scrolling */ +- if (!GTK_WIDGET_HAS_FOCUS(treeview)) ++ if (!gtk_widget_has_focus(treeview)) + { + path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (treeview), path, NULL, FALSE); +@@ -797,7 +797,7 @@ + } + } + /* focusing (clicking) the textview will stop scrolling */ +- if (!GTK_WIDGET_HAS_FOCUS(maintext)) ++ if (!gtk_widget_has_focus(maintext)) + { + gtk_text_buffer_get_bounds (buffer, &start, &end); + gtk_text_buffer_place_cursor(buffer, &end); |