Avoid a warning when building with Gtk+ 3
This commit is contained in:
parent
2c2c5ec7fa
commit
c626d6c972
|
@ -330,7 +330,11 @@ static void _new_date(Clock * clock, GtkWidget * notebook)
|
|||
gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
|
||||
/* FIXME make it an editable combo box (with drop-down list) */
|
||||
widget = gtk_label_new(p);
|
||||
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||
g_object_set(widget, "halign", GTK_ALIGN_START, NULL);
|
||||
#else
|
||||
gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5);
|
||||
#endif
|
||||
gtk_box_pack_start(GTK_BOX(hbox), widget, TRUE, TRUE, 0);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user