summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2016-04-13 07:43:53 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2016-04-13 07:43:53 +0000
commit5cebe28e2fa5ca6ee27e43579596f5aad43273f5 (patch)
tree4334b839d3742bbf6602f6b2c9dff4c4fd4f9b7a /src/ui/dialog
parentclonetiler: Fix deprecated gtk_misc_set_alignment #Hackfest2016 (diff)
downloadinkscape-5cebe28e2fa5ca6ee27e43579596f5aad43273f5.tar.gz
inkscape-5cebe28e2fa5ca6ee27e43579596f5aad43273f5.zip
clonetiler: Fix deprecated GtkAlignment #Hackfest2016
(bzr r14808)
Diffstat (limited to 'src/ui/dialog')
-rw-r--r--src/ui/dialog/clonetiler.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ui/dialog/clonetiler.cpp b/src/ui/dialog/clonetiler.cpp
index fa53041d3..9656878e0 100644
--- a/src/ui/dialog/clonetiler.cpp
+++ b/src/ui/dialog/clonetiler.cpp
@@ -2866,14 +2866,13 @@ void CloneTiler::clonetiler_reset(GtkWidget */*widget*/, GtkWidget *dlg)
void CloneTiler::clonetiler_table_attach(GtkWidget *table, GtkWidget *widget, float align, int row, int col)
{
- GtkWidget *a = gtk_alignment_new (align, 0, 0, 0);
- gtk_container_add(GTK_CONTAINER(a), widget);
-
#if GTK_CHECK_VERSION(3,0,0)
- gtk_widget_set_halign(table, GTK_ALIGN_FILL);
- gtk_widget_set_valign(table, GTK_ALIGN_CENTER);
- gtk_grid_attach(GTK_GRID(table), a, col, row, 1, 1);
+ gtk_widget_set_halign(widget, GTK_ALIGN_FILL);
+ gtk_widget_set_valign(widget, GTK_ALIGN_START);
+ gtk_grid_attach(GTK_GRID(table), widget, col, row, 1, 1);
#else
+ GtkWidget *a = gtk_alignment_new (align, 0, 0, 0);
+ gtk_container_add(GTK_CONTAINER(a), widget);
gtk_table_attach ( GTK_TABLE (table), a, col, col + 1, row, row + 1, GTK_FILL, (GtkAttachOptions)0, 0, 0 );
#endif
}