[gimp/gtk3-port: 255/336] 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/336] Get rid of all GtkAlignments, use GtkWidget align/margin instead
- Date: Fri, 4 May 2018 10:09:48 +0000 (UTC)
commit 9efb31d74e5b2f7d5a10454fa54aa9fd3e71b8c0
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]