mirror of https://github.com/GNOME/gimp.git
app/dialogs/print-size-dialog.c set a focus_chain on the size_entries so
2004-12-09 Michael Natterer <mitch@gimp.org> * app/dialogs/print-size-dialog.c * app/widgets/gimpsizebox.c: set a focus_chain on the size_entries so the focus order is width->height->chain->unitmenu and not width->chain->height->unitmenu. * app/widgets/gimptemplateeditor.c: changed focus_chain code to work like above (cosmetics).
This commit is contained in:
parent
9920128eb7
commit
01e94fcb19
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2004-12-09 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/dialogs/print-size-dialog.c
|
||||
* app/widgets/gimpsizebox.c: set a focus_chain on the size_entries
|
||||
so the focus order is width->height->chain->unitmenu and not
|
||||
width->chain->height->unitmenu.
|
||||
|
||||
* app/widgets/gimptemplateeditor.c: changed focus_chain code to
|
||||
work like above (cosmetics).
|
||||
|
||||
2004-12-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gui/splash.c (splash_update): only expose the area of the
|
||||
|
|
|
@ -92,6 +92,7 @@ print_size_dialog_new (GimpImage *image,
|
|||
GtkWidget *hbox;
|
||||
GtkWidget *chain;
|
||||
GtkObject *adj;
|
||||
GList *focus_chain = NULL;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
|
||||
g_return_val_if_fail (callback != NULL, NULL);
|
||||
|
@ -265,6 +266,14 @@ print_size_dialog_new (GimpImage *image,
|
|||
|
||||
private->chain = GIMP_CHAIN_BUTTON (chain);
|
||||
|
||||
focus_chain = g_list_prepend (focus_chain, GIMP_SIZE_ENTRY (entry)->unitmenu);
|
||||
focus_chain = g_list_prepend (focus_chain, chain);
|
||||
focus_chain = g_list_prepend (focus_chain, height);
|
||||
focus_chain = g_list_prepend (focus_chain, width);
|
||||
|
||||
gtk_container_set_focus_chain (GTK_CONTAINER (entry), focus_chain);
|
||||
g_list_free (focus_chain);
|
||||
|
||||
g_signal_connect (private->size_entry, "value_changed",
|
||||
G_CALLBACK (print_size_dialog_size_changed),
|
||||
private);
|
||||
|
|
|
@ -210,6 +210,7 @@ gimp_size_box_constructor (GType type,
|
|||
GtkWidget *vbox;
|
||||
GtkWidget *label;
|
||||
GtkObject *adjustment;
|
||||
GList *focus_chain = NULL;
|
||||
GimpSizeBoxPrivate *priv;
|
||||
|
||||
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
|
||||
|
@ -300,6 +301,14 @@ gimp_size_box_constructor (GType type,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
focus_chain = g_list_prepend (focus_chain, GIMP_SIZE_ENTRY (entry)->unitmenu);
|
||||
focus_chain = g_list_prepend (focus_chain, chain);
|
||||
focus_chain = g_list_prepend (focus_chain, height);
|
||||
focus_chain = g_list_prepend (focus_chain, width);
|
||||
|
||||
gtk_container_set_focus_chain (GTK_CONTAINER (entry), focus_chain);
|
||||
g_list_free (focus_chain);
|
||||
|
||||
priv = GIMP_SIZE_BOX_GET_PRIVATE (box);
|
||||
|
||||
priv->size_entry = GIMP_SIZE_ENTRY (entry);
|
||||
|
@ -371,6 +380,16 @@ gimp_size_box_constructor (GType type,
|
|||
gtk_table_attach_defaults (GTK_TABLE (entry), chain, 1, 2, 0, 2);
|
||||
gtk_widget_show (chain);
|
||||
|
||||
focus_chain = NULL;
|
||||
focus_chain = g_list_prepend (focus_chain,
|
||||
GIMP_SIZE_ENTRY (entry)->unitmenu);
|
||||
focus_chain = g_list_prepend (focus_chain, chain);
|
||||
focus_chain = g_list_prepend (focus_chain, yres);
|
||||
focus_chain = g_list_prepend (focus_chain, xres);
|
||||
|
||||
gtk_container_set_focus_chain (GTK_CONTAINER (entry), focus_chain);
|
||||
g_list_free (focus_chain);
|
||||
|
||||
gimp_prop_coordinates_connect (G_OBJECT (box),
|
||||
"xresolution", "yresolution",
|
||||
"resolution-unit",
|
||||
|
|
|
@ -420,12 +420,11 @@ gimp_template_editor_constructor (GType type,
|
|||
editor->resolution_se, chainbutton,
|
||||
1.0, 1.0);
|
||||
|
||||
focus_chain = g_list_append (focus_chain, xres);
|
||||
focus_chain = g_list_append (focus_chain, yres);
|
||||
focus_chain = g_list_append (focus_chain, chainbutton);
|
||||
|
||||
focus_chain = g_list_append (focus_chain,
|
||||
GIMP_SIZE_ENTRY (editor->resolution_se)->unitmenu);
|
||||
focus_chain = g_list_prepend (focus_chain,
|
||||
GIMP_SIZE_ENTRY (editor->resolution_se)->unitmenu);
|
||||
focus_chain = g_list_prepend (focus_chain, chainbutton);
|
||||
focus_chain = g_list_prepend (focus_chain, yres);
|
||||
focus_chain = g_list_prepend (focus_chain, xres);
|
||||
|
||||
gtk_container_set_focus_chain (GTK_CONTAINER (editor->resolution_se),
|
||||
focus_chain);
|
||||
|
|
Loading…
Reference in New Issue