mirror of https://github.com/GNOME/gimp.git
app/gui/preferences-dialog.c app/widgets/widgets-enums.[ch] added new
2004-05-04 Sven Neumann <sven@gimp.org> * app/gui/preferences-dialog.c * app/widgets/widgets-enums.[ch] * app/widgets/gimpwidgets-utils.c (gimp_window_set_hint): added new window hint "keep-above" to force toolbox and/or dock windows to be kept above (if the WM supports this hint). Fixes bug #131672.
This commit is contained in:
parent
29e4cf347b
commit
2c2f46aeca
|
@ -1,3 +1,11 @@
|
|||
2004-05-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gui/preferences-dialog.c
|
||||
* app/widgets/widgets-enums.[ch]
|
||||
* app/widgets/gimpwidgets-utils.c (gimp_window_set_hint): added
|
||||
new window hint "keep-above" to force toolbox and/or dock windows
|
||||
to be kept above (if the WM supports this hint). Fixes bug #131672.
|
||||
|
||||
2004-05-04 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Fix bug #141719:
|
||||
|
|
|
@ -1820,17 +1820,17 @@ prefs_dialog_new (Gimp *gimp,
|
|||
&top_iter,
|
||||
page_index++);
|
||||
|
||||
vbox2 = prefs_frame_new (_("Window Type Hints"),
|
||||
vbox2 = prefs_frame_new (_("Window Manager Hints"),
|
||||
GTK_CONTAINER (vbox), FALSE);
|
||||
|
||||
table = prefs_table_new (2, GTK_CONTAINER (vbox2), FALSE);
|
||||
|
||||
prefs_enum_combo_box_add (object, "toolbox-window-hint", 0, 0,
|
||||
_("Window Type Hint for the _Toolbox:"),
|
||||
_("Hint for the _Toolbox:"),
|
||||
GTK_TABLE (table), 0);
|
||||
|
||||
prefs_enum_combo_box_add (object, "dock-window-hint", 0, 0,
|
||||
_("Window Type Hint for the _Docks:"),
|
||||
_("Hint for the _Docks:"),
|
||||
GTK_TABLE (table), 1);
|
||||
|
||||
vbox2 = prefs_frame_new (_("Focus"),
|
||||
|
|
|
@ -1820,17 +1820,17 @@ prefs_dialog_new (Gimp *gimp,
|
|||
&top_iter,
|
||||
page_index++);
|
||||
|
||||
vbox2 = prefs_frame_new (_("Window Type Hints"),
|
||||
vbox2 = prefs_frame_new (_("Window Manager Hints"),
|
||||
GTK_CONTAINER (vbox), FALSE);
|
||||
|
||||
table = prefs_table_new (2, GTK_CONTAINER (vbox2), FALSE);
|
||||
|
||||
prefs_enum_combo_box_add (object, "toolbox-window-hint", 0, 0,
|
||||
_("Window Type Hint for the _Toolbox:"),
|
||||
_("Hint for the _Toolbox:"),
|
||||
GTK_TABLE (table), 0);
|
||||
|
||||
prefs_enum_combo_box_add (object, "dock-window-hint", 0, 0,
|
||||
_("Window Type Hint for the _Docks:"),
|
||||
_("Hint for the _Docks:"),
|
||||
GTK_TABLE (table), 1);
|
||||
|
||||
vbox2 = prefs_frame_new (_("Focus"),
|
||||
|
|
|
@ -749,5 +749,9 @@ gimp_window_set_hint (GtkWindow *window,
|
|||
case GIMP_WINDOW_HINT_UTILITY:
|
||||
gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_UTILITY);
|
||||
break;
|
||||
|
||||
case GIMP_WINDOW_HINT_KEEP_ABOVE:
|
||||
gtk_window_set_keep_above (window, TRUE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,6 +135,7 @@ static const GEnumValue gimp_window_hint_enum_values[] =
|
|||
{
|
||||
{ GIMP_WINDOW_HINT_NORMAL, N_("Normal Window"), "normal" },
|
||||
{ GIMP_WINDOW_HINT_UTILITY, N_("Utility Window"), "utility" },
|
||||
{ GIMP_WINDOW_HINT_KEEP_ABOVE, N_("Keep Above"), "keep-above" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
|
@ -105,8 +105,9 @@ GType gimp_window_hint_get_type (void) G_GNUC_CONST;
|
|||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_WINDOW_HINT_NORMAL, /*< desc="Normal Window" >*/
|
||||
GIMP_WINDOW_HINT_UTILITY, /*< desc="Utility Window" >*/
|
||||
GIMP_WINDOW_HINT_NORMAL, /*< desc="Normal Window" >*/
|
||||
GIMP_WINDOW_HINT_UTILITY, /*< desc="Utility Window" >*/
|
||||
GIMP_WINDOW_HINT_KEEP_ABOVE /*< desc="Keep Above" >*/
|
||||
} GimpWindowHint;
|
||||
|
||||
|
||||
|
@ -118,7 +119,7 @@ typedef enum
|
|||
{
|
||||
GIMP_ZOOM_IN, /*< desc="Zoom in" >*/
|
||||
GIMP_ZOOM_OUT, /*< desc="Zoom out" >*/
|
||||
GIMP_ZOOM_TO /*< skip >*/
|
||||
GIMP_ZOOM_TO /*< skip >*/
|
||||
} GimpZoomType;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue