wrong function was called for gtk 2.20

This commit is contained in:
berkeviktor@aol.com 2010-05-02 22:49:56 +02:00
parent bd1c57f6a1
commit 663fe58c6c
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#define USE_GMODULE #define USE_GMODULE
#define USE_PLUGIN #define USE_PLUGIN
#define PACKAGE_NAME "xchat" #define PACKAGE_NAME "xchat"
#define PACKAGE_VERSION "r1412-2" #define PACKAGE_VERSION "r1412-3"
#define XCHATLIBDIR "." #define XCHATLIBDIR "."
#define XCHATSHAREDIR "." #define XCHATSHAREDIR "."
#define OLD_PERL #define OLD_PERL

View File

@ -712,7 +712,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/maingui.c xchat-wdk/src/
gtk_widget_show (button); gtk_widget_show (button);
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/menu.c xchat-wdk/src/fe-gtk/menu.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/menu.c xchat-wdk/src/fe-gtk/menu.c
--- xchat-wdk.orig/src/fe-gtk/menu.c 2008-06-10 14:05:00 +0200 --- xchat-wdk.orig/src/fe-gtk/menu.c 2008-06-10 14:05:00 +0200
+++ xchat-wdk/src/fe-gtk/menu.c 2010-05-02 13:54:19 +0200 +++ xchat-wdk/src/fe-gtk/menu.c 2010-05-02 22:48:00 +0200
@@ -22,7 +22,6 @@ @@ -22,7 +22,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>
@ -726,7 +726,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/menu.c xchat-wdk/src/fe-
{ {
/* GTK2.2 behaviour */ /* GTK2.2 behaviour */
- return GTK_WIDGET_IS_SENSITIVE (widget); - return GTK_WIDGET_IS_SENSITIVE (widget);
+ return gtk_widget_get_visible (widget); + return gtk_widget_is_sensitive (widget);
} }
#endif #endif