aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/replace-deprecated-gtk.patch
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-10 10:34:56 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-10 10:34:56 -0400
commit4767a3eb78e2e8286160000c203d1b91357614f7 (patch)
treeb3ecf8f3ba45c40f95efc8bc024e36cd5a61a8ed /debian/patches/replace-deprecated-gtk.patch
parentreadd all images (diff)
downloadfbxkb-4767a3eb78e2e8286160000c203d1b91357614f7.tar.gz
fbxkb-4767a3eb78e2e8286160000c203d1b91357614f7.tar.bz2
fbxkb-4767a3eb78e2e8286160000c203d1b91357614f7.zip
original 0.6 source codeorig
from debian's orig.tar.gz. The original app is from sourceforge: https://fbxkb.sourceforge.net/index.html
Diffstat (limited to 'debian/patches/replace-deprecated-gtk.patch')
-rw-r--r--debian/patches/replace-deprecated-gtk.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/debian/patches/replace-deprecated-gtk.patch b/debian/patches/replace-deprecated-gtk.patch
deleted file mode 100644
index e4a2f15..0000000
--- a/debian/patches/replace-deprecated-gtk.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-Description: Remove deprecated GTK functions
- Remove gtk_set_locale() and change gdk_window_lookup() to gdk_x11_window_lookup_for_display().
- Fixes "pointer-trouble-at-implicit" and "pointer-from-integer" warnings.
-Author: Dmitry Borisyuk <q1werty@i.com.ua>
---- a/eggtrayicon.c
-+++ b/eggtrayicon.c
-@@ -111,7 +111,7 @@
- gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (widget),
- icon->manager_window);
- #else
-- gdkwin = gdk_window_lookup (icon->manager_window);
-+ gdkwin = gdk_x11_window_lookup_for_display (gdk_display_get_default(), icon->manager_window);
- #endif
-
- gdk_window_remove_filter (gdkwin, egg_tray_icon_manager_filter, icon);
-@@ -120,7 +120,7 @@
- #if HAVE_GTK_MULTIHEAD
- root_window = gdk_screen_get_root_window (gtk_widget_get_screen (widget));
- #else
-- root_window = gdk_window_lookup (gdk_x11_get_default_root_xwindow ());
-+ root_window = gdk_x11_window_lookup_for_display (gdk_display_get_default(), gdk_x11_get_default_root_xwindow ());
- #endif
-
- gdk_window_remove_filter (root_window, egg_tray_icon_manager_filter, icon);
-@@ -192,7 +192,7 @@
- gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)),
- icon->manager_window);
- #else
-- gdkwin = gdk_window_lookup (icon->manager_window);
-+ gdkwin = gdk_x11_window_lookup_for_display (gdk_display_get_default(), icon->manager_window);
- #endif
-
- gdk_window_remove_filter (gdkwin, egg_tray_icon_manager_filter, icon);
-@@ -218,7 +218,7 @@
- gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)),
- icon->manager_window);
- #else
-- gdkwin = gdk_window_lookup (icon->manager_window);
-+ gdkwin = gdk_x11_window_lookup_for_display (gdk_display_get_default(), icon->manager_window);
- #endif
-
- gdk_window_add_filter (gdkwin, egg_tray_icon_manager_filter, icon);
-@@ -274,7 +274,7 @@
- #if HAVE_GTK_MULTIHEAD
- root_window = gdk_screen_get_root_window (gtk_widget_get_screen (screen));
- #else
-- root_window = gdk_window_lookup (gdk_x11_get_default_root_xwindow ());
-+ root_window = gdk_x11_window_lookup_for_display (gdk_display_get_default(), gdk_x11_get_default_root_xwindow ());
- #endif
-
- /* Add a root window filter so that we get changes on MANAGER */
---- a/fbxkb.c
-+++ b/fbxkb.c
-@@ -510,8 +510,7 @@
- main(int argc, char *argv[], char *env[])
- {
- ENTER;
-- setlocale(LC_CTYPE, "");
-- gtk_set_locale();
-+ setlocale(LC_ALL, "");
- gtk_init(&argc, &argv);
- XSetLocaleModifiers("");
- XSetErrorHandler((XErrorHandler) Xerror_handler);
bgstack15