Fix setting alignment properties

This commit is contained in:
Pierre Pronchery 2015-11-05 22:58:59 +01:00
parent 2eaad45856
commit 0fbd920e62
2 changed files with 5 additions and 5 deletions

View File

@ -738,7 +738,7 @@ static GtkWidget * _properties_label(Debugger * debugger, GtkSizeGroup * group,
#endif
widget = gtk_label_new(label);
#if GTK_CHECK_VERSION(3, 0, 0)
g_object_set(widget, "halign", 0.0, NULL);
g_object_set(widget, "halign", GTK_ALIGN_START, NULL);
gtk_widget_override_font(widget, debugger->bold);
#else
gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5);
@ -748,7 +748,7 @@ static GtkWidget * _properties_label(Debugger * debugger, GtkSizeGroup * group,
gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
widget = gtk_label_new((value != NULL) ? value : "");
#if GTK_CHECK_VERSION(3, 0, 0)
g_object_set(widget, "halign", 0.0, NULL);
g_object_set(widget, "halign", GTK_ALIGN_START, NULL);
#else
gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5);
#endif

View File

@ -617,7 +617,7 @@ static int _sequel_connect_dialog(Sequel * sequel)
#endif
label = gtk_label_new(_("Engine:"));
#if GTK_CHECK_VERSION(3, 0, 0)
g_object_set(label, "halign", 0.0, NULL);
g_object_set(label, "halign", GTK_ALIGN_START, NULL);
#else
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
#endif
@ -639,7 +639,7 @@ static int _sequel_connect_dialog(Sequel * sequel)
#endif
label = gtk_label_new(_("Connection file:"));
#if GTK_CHECK_VERSION(3, 0, 0)
g_object_set(label, "halign", 0.0, NULL);
g_object_set(label, "halign", GTK_ALIGN_START, NULL);
#else
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
#endif
@ -665,7 +665,7 @@ static int _sequel_connect_dialog(Sequel * sequel)
#endif
label = gtk_label_new(_("Section:"));
#if GTK_CHECK_VERSION(3, 0, 0)
g_object_set(label, "halign", 0.0, NULL);
g_object_set(label, "halign", GTK_ALIGN_START, NULL);
#else
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
#endif