mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
33 lines
1.7 KiB
Plaintext
33 lines
1.7 KiB
Plaintext
$NetBSD: patch-ac,v 1.2 2011/01/27 05:26:50 obache Exp $
|
|
|
|
* Use API for set window properties.
|
|
construct property "type" for object can't be set after construction.
|
|
https://bugs.launchpad.net/xpad/+bug/591978
|
|
|
|
--- src/xpad-pad.c.orig 2009-05-11 01:44:09.000000000 +0000
|
|
+++ src/xpad-pad.c
|
|
@@ -268,16 +268,14 @@ xpad_pad_init (XpadPad *pad)
|
|
NULL));
|
|
gtk_container_child_set (GTK_CONTAINER (vbox), pad->priv->toolbar, "expand", FALSE, NULL);
|
|
|
|
+ gtk_window_set_decorated (GTK_WINDOW(pad), xpad_settings_get_has_decorations (xpad_settings ()));
|
|
+ gtk_window_set_default_size (GTK_WINDOW(pad), xpad_settings_get_width (xpad_settings ()), xpad_settings_get_height (xpad_settings ()));
|
|
+ gtk_window_set_gravity (GTK_WINDOW(pad), GDK_GRAVITY_STATIC); /* static gravity makes saving pad x,y work */
|
|
+ gtk_window_set_skip_pager_hint (GTK_WINDOW(pad),xpad_settings_get_has_decorations (xpad_settings ()));
|
|
+ gtk_window_set_skip_taskbar_hint (GTK_WINDOW(pad), !xpad_settings_get_has_decorations (xpad_settings ()));
|
|
+ gtk_window_set_type_hint (GTK_WINDOW(pad), GDK_WINDOW_TYPE_HINT_NORMAL);
|
|
+ gtk_window_set_position (GTK_WINDOW(pad), GTK_WIN_POS_MOUSE);
|
|
g_object_set (G_OBJECT (pad),
|
|
- "decorated", xpad_settings_get_has_decorations (xpad_settings ()),
|
|
- "default-height", xpad_settings_get_height (xpad_settings ()),
|
|
- "default-width", xpad_settings_get_width (xpad_settings ()),
|
|
- "gravity", GDK_GRAVITY_STATIC, /* static gravity makes saving pad x,y work */
|
|
- "skip-pager-hint", !xpad_settings_get_has_decorations (xpad_settings ()),
|
|
- "skip-taskbar-hint", !xpad_settings_get_has_decorations (xpad_settings ()),
|
|
- "type", GTK_WINDOW_TOPLEVEL,
|
|
- "type-hint", GDK_WINDOW_TYPE_HINT_NORMAL,
|
|
- "window-position", GTK_WIN_POS_MOUSE,
|
|
"child", vbox,
|
|
NULL);
|
|
|