Gimp display bug fix and gdk patch.
- From: Lauri Alanko <la iki fi>
- To: GIMP Developers' ML <gimp-developer scam xcf berkeley edu>, gtk-list redhat com
- Subject: Gimp display bug fix and gdk patch.
- Date: Wed, 17 Dec 1997 23:42:52 +0200 (EET)
Hello, all.
This fixes the bug of --display not affecting plugins, but it needs a tiny
addition to gdk. I hope both will be committed...
Lauri Alanko
la@iki.fi
--- gimp-0.99.16/app/main.c~ Tue Nov 25 00:02:42 1997
+++ gimp-0.99.16/app/main.c Wed Dec 17 23:36:53 1997
@@ -84,6 +84,7 @@
gtk_accelerator_table_set_mod_mask (NULL, GDK_SHIFT_MASK |
GDK_CONTROL_MASK |
GDK_MOD1_MASK);
+ setenv("DISPLAY", gdk_get_display (), TRUE);
no_interface = FALSE;
no_data = FALSE;
--- gtk+-0.99.0/gdk/gdk.c~ Thu Dec 11 18:45:15 1997
+++ gtk+-0.99.0/gdk/gdk.c Wed Dec 17 23:13:10 1997
@@ -3674,3 +3674,9 @@
XFree(ret_children);
}
+
+gchar *
+gdk_get_display(void)
+{
+ return (gchar *)XDisplayName (gdk_display_name);
+}
--- gtk+-0.99.0/gdk/gdk.h~ Sun Dec 7 18:36:35 1997
+++ gtk+-0.99.0/gdk/gdk.h Wed Dec 17 23:38:13 1997
@@ -50,6 +50,7 @@
gint gdk_get_debug_level (void);
gint gdk_get_show_events (void);
gint gdk_get_use_xshm (void);
+gchar *gdk_get_display (void);
guint32 gdk_time_get (void);
guint32 gdk_timer_get (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]