From 2e205e7c1a19a070cc2187a7718cd52da46c011b Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 19 Jul 2004 15:25:44 +0000 Subject: [PATCH] added the "web" icon left of label & entry. 2004-07-19 Michael Natterer * app/gui/file-open-location-dialog.c (file_open_location_dialog_show): added the "web" icon left of label & entry. --- ChangeLog | 6 ++++++ app/dialogs/file-open-location-dialog.c | 20 +++++++++++++++++--- app/gui/file-open-location-dialog.c | 20 +++++++++++++++++--- 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index e70651146b..a8adf82204 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-19 Michael Natterer + + * app/gui/file-open-location-dialog.c + (file_open_location_dialog_show): added the "web" icon left of + label & entry. + 2004-07-19 Michael Natterer * app/paint/gimppaintcore.h: removed enum GimpPaintCoreState. diff --git a/app/dialogs/file-open-location-dialog.c b/app/dialogs/file-open-location-dialog.c index 98e7b96360..55156b1957 100644 --- a/app/dialogs/file-open-location-dialog.c +++ b/app/dialogs/file-open-location-dialog.c @@ -57,7 +57,9 @@ file_open_location_dialog_show (Gimp *gimp, GtkWidget *parent) { GtkWidget *dialog; + GtkWidget *hbox; GtkWidget *vbox; + GtkWidget *image; GtkWidget *label; GtkWidget *entry; GtkEntryCompletion *completion; @@ -80,10 +82,22 @@ file_open_location_dialog_show (Gimp *gimp, G_CALLBACK (file_open_location_response), gimp); - vbox = gtk_vbox_new (FALSE, 6); - gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); + hbox = gtk_hbox_new (FALSE, 12); + gtk_container_set_border_width (GTK_CONTAINER (hbox), 12); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), - vbox, FALSE, FALSE, 0); + hbox, FALSE, FALSE, 0); + gtk_widget_show (hbox); + + vbox = gtk_vbox_new (FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0); + gtk_widget_show (vbox); + + image = gtk_image_new_from_stock (GIMP_STOCK_WEB, GTK_ICON_SIZE_BUTTON); + gtk_box_pack_start (GTK_BOX (vbox), image, FALSE, FALSE, 0); + gtk_widget_show (image); + + vbox = gtk_vbox_new (FALSE, 6); + gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0); gtk_widget_show (vbox); label = gtk_label_new (_("Enter location (URI):")); diff --git a/app/gui/file-open-location-dialog.c b/app/gui/file-open-location-dialog.c index 98e7b96360..55156b1957 100644 --- a/app/gui/file-open-location-dialog.c +++ b/app/gui/file-open-location-dialog.c @@ -57,7 +57,9 @@ file_open_location_dialog_show (Gimp *gimp, GtkWidget *parent) { GtkWidget *dialog; + GtkWidget *hbox; GtkWidget *vbox; + GtkWidget *image; GtkWidget *label; GtkWidget *entry; GtkEntryCompletion *completion; @@ -80,10 +82,22 @@ file_open_location_dialog_show (Gimp *gimp, G_CALLBACK (file_open_location_response), gimp); - vbox = gtk_vbox_new (FALSE, 6); - gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); + hbox = gtk_hbox_new (FALSE, 12); + gtk_container_set_border_width (GTK_CONTAINER (hbox), 12); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), - vbox, FALSE, FALSE, 0); + hbox, FALSE, FALSE, 0); + gtk_widget_show (hbox); + + vbox = gtk_vbox_new (FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0); + gtk_widget_show (vbox); + + image = gtk_image_new_from_stock (GIMP_STOCK_WEB, GTK_ICON_SIZE_BUTTON); + gtk_box_pack_start (GTK_BOX (vbox), image, FALSE, FALSE, 0); + gtk_widget_show (image); + + vbox = gtk_vbox_new (FALSE, 6); + gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0); gtk_widget_show (vbox); label = gtk_label_new (_("Enter location (URI):"));