[gimp/gtk3-port: 255/262] Get rid of all GtkAlignments, use GtkWidget align/margin instead
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 255/262] Get rid of all GtkAlignments, use GtkWidget align/margin instead
- Date: Sun, 29 Apr 2018 17:05:24 +0000 (UTC)
commit f4c6585010b87f621c0633a5a18942049f7ec30d
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 29 03:55:55 2018 +0200
Get rid of all GtkAlignments, use GtkWidget align/margin instead
app/dialogs/palette-import-dialog.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/app/dialogs/palette-import-dialog.c b/app/dialogs/palette-import-dialog.c
index be86aa7..6e2cb96 100644
--- a/app/dialogs/palette-import-dialog.c
+++ b/app/dialogs/palette-import-dialog.c
@@ -139,7 +139,6 @@ palette_import_dialog_new (GimpContext *context)
GtkWidget *frame;
GtkWidget *vbox;
GtkWidget *table;
- GtkWidget *abox;
GtkSizeGroup *size_group;
GSList *group = NULL;
@@ -362,16 +361,13 @@ palette_import_dialog_new (GimpContext *context)
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_widget_show (vbox);
- abox = gtk_alignment_new (0.0, 0.0, 0.0, 0.0);
- gtk_box_pack_start (GTK_BOX (vbox), abox, FALSE, FALSE, 0);
- gtk_widget_show (abox);
-
private->preview = gimp_view_new_full_by_types (private->context,
GIMP_TYPE_VIEW,
GIMP_TYPE_PALETTE,
192, 192, 1,
TRUE, FALSE, FALSE);
- gtk_container_add (GTK_CONTAINER (abox), private->preview);
+ gtk_widget_set_halign (private->preview, 0.0);
+ gtk_box_pack_start (GTK_BOX (vbox), private->preview, FALSE, FALSE, 0);
gtk_widget_show (private->preview);
private->no_colors_label =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]