summaryrefslogtreecommitdiff
blob: 2b3c7655e1528b131eb6abd849de605a6e7427eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);