Set type hints for older gtk versions
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Jul 2007 06:13:06 +0000 (06:13 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Jul 2007 06:13:06 +0000 (06:13 +0000)
lib/gtksheet/gtksheet.c
src/ui/gui/psppire-dialog.c

index ae71057215f37b12054247da15528c4cca5c920a..82a839a7cddaefae538c46043f46240ffe189440 100644 (file)
@@ -5318,8 +5318,10 @@ create_hover_window (void)
 
   hw->window = gtk_window_new (GTK_WINDOW_POPUP);
 
+#if GTK_CHECK_VERSION (2, 9, 0)
   gtk_window_set_type_hint (GTK_WINDOW (hw->window),
                            GDK_WINDOW_TYPE_HINT_TOOLTIP);
+#endif
 
   gtk_widget_set_app_paintable (hw->window, TRUE);
   gtk_window_set_resizable (GTK_WINDOW (hw->window), FALSE);
index b978880196448a9ba59d2b638fcd23ad6ca35c03..b725552104d340b6ed5208912116fd65140f4cd7 100644 (file)
@@ -231,6 +231,9 @@ psppire_dialog_init (PsppireDialog *dialog)
   g_value_init (&value, orientation_spec->value_type);
   g_param_value_set_default (orientation_spec, &value);
 
+  gtk_window_set_type_hint (GTK_WINDOW (dialog),
+       GDK_WINDOW_TYPE_HINT_DIALOG);
+
   dialog_set_orientation (dialog, &value);
 
   g_value_unset (&value);