[gimp] app: simpler and better-aligned packig in gimpviewablebox
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: simpler and better-aligned packig in gimpviewablebox
- Date: Sat, 14 Apr 2018 00:20:46 +0000 (UTC)
commit 257eb95258a2797e160f095b6a0f8f7bcc81190d
Author: Michael Natterer <mitch gimp org>
Date: Sat Apr 14 02:19:50 2018 +0200
app: simpler and better-aligned packig in gimpviewablebox
app/widgets/gimpviewablebox.c | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/app/widgets/gimpviewablebox.c b/app/widgets/gimpviewablebox.c
index 070f2a0..a85a6f0 100644
--- a/app/widgets/gimpviewablebox.c
+++ b/app/widgets/gimpviewablebox.c
@@ -629,7 +629,6 @@ gimp_viewable_box_new (GimpContainer *container,
GtkWidget *button;
GtkWidget *vbox;
GtkWidget *l;
- GtkWidget *entry_hbox = NULL;
GtkWidget *entry;
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, spacing);
@@ -661,25 +660,13 @@ gimp_viewable_box_new (GimpContainer *container,
gtk_widget_show (l);
}
- if (editor_id)
- {
- entry_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, spacing);
- gtk_box_pack_end (GTK_BOX (vbox), entry_hbox, FALSE, FALSE, 0);
- gtk_widget_show (entry_hbox);
- }
-
entry = gimp_container_entry_new (container, context, view_size, 1);
/* set a silly smally size request on the entry to disable
* GtkEntry's minimal width of 150 pixels.
*/
gtk_entry_set_width_chars (GTK_ENTRY (entry), 4);
-
- if (entry_hbox)
- gtk_box_pack_start (GTK_BOX (entry_hbox), entry, TRUE, TRUE, 0);
- else
- gtk_box_pack_end (GTK_BOX (vbox), entry, label ? FALSE : TRUE, FALSE, 0);
-
+ gtk_box_pack_end (GTK_BOX (vbox), entry, label ? FALSE : TRUE, FALSE, 0);
gtk_widget_show (entry);
if (editor_id)
@@ -689,7 +676,7 @@ gimp_viewable_box_new (GimpContainer *container,
edit_button = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (edit_button), GTK_RELIEF_NONE);
- gtk_box_pack_end (GTK_BOX (entry_hbox), edit_button, FALSE, FALSE, 0);
+ gtk_box_pack_end (GTK_BOX (hbox), edit_button, FALSE, FALSE, 0);
gtk_widget_show (edit_button);
if (editor_tooltip)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]