You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-radio/xdx/files/xdx-gtk-2.20.patch

35 lines
1.3 KiB

# 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);