aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2013-10-22 16:56:20 (EDT)
committerSilenio Quarti2013-10-22 16:56:20 (EDT)
commitfbf94526cb7c36ead3ac611a8fc8006f10211b7c (patch)
tree947307bbf9290c3f63ca74a02de25d5ec1759419
parentd1e8dd2853cfb6ed8f5fd17dfa86945cb71ec0dc (diff)
downloadrt.equinox.framework-fbf94526cb7c36ead3ac611a8fc8006f10211b7c.zip
rt.equinox.framework-fbf94526cb7c36ead3ac611a8fc8006f10211b7c.tar.gz
rt.equinox.framework-fbf94526cb7c36ead3ac611a8fc8006f10211b7c.tar.bz2
splash has wrong size on Ubuntu 13.10
-rw-r--r--bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.c1
-rw-r--r--bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.h1
-rw-r--r--bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.c b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.c
index 6ec48e7..1c60b3d 100644
--- a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.c
+++ b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.c
@@ -245,6 +245,7 @@ int showSplash( const char* featureImage )
shellHandle = gtk.gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk.gtk_window_set_decorated((GtkWindow*)(shellHandle), FALSE);
+ gtk.gtk_window_set_type_hint((GtkWindow*)(shellHandle), 4 /*GDK_WINDOW_TYPE_HINT_SPLASHSCREEN*/);
gtk.g_signal_connect_data((gpointer)shellHandle, "destroy", (GtkSignalFunc)(gtk.gtk_widget_destroyed), &shellHandle, NULL, 0);
pixbuf = gtk.gdk_pixbuf_new_from_file(featureImage, NULL);
diff --git a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.h b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.h
index 503c9a5..5a233ee 100644
--- a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.h
+++ b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtk.h
@@ -31,6 +31,7 @@ struct GTK_PTRS {
void (*gtk_window_resize) (GtkWindow*, gint, gint);
void (*gtk_window_set_title) (GtkWindow*, const gchar*);
void (*gtk_window_set_decorated) (GtkWindow*, gboolean);
+ void (*gtk_window_set_type_hint) (GtkWindow*, int);
void (*gtk_window_set_position) (GtkWindow*, GtkWindowPosition);
gulong (*g_signal_connect_data) (gpointer, const gchar*, GCallback, gpointer, GClosureNotify, GConnectFlags);
diff --git a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c
index 51ed70a..b07e357 100644
--- a/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c
+++ b/bundles/org.eclipse.equinox.executable/library/gtk/eclipseGtkInit.c
@@ -34,6 +34,7 @@ static FN_TABLE gtkFunctions[] = {
FN_TABLE_ENTRY(gtk_window_resize, 1),
FN_TABLE_ENTRY(gtk_window_set_title, 1),
FN_TABLE_ENTRY(gtk_window_set_decorated, 1),
+ FN_TABLE_ENTRY(gtk_window_set_type_hint, 1),
FN_TABLE_ENTRY(gtk_window_set_position, 1),
{ NULL, NULL }
};