Preparing migration to Gtk+ 3.0

This commit is contained in:
Pierre Pronchery 2011-04-15 23:49:02 +00:00
parent ece37b2cb8
commit fd47741cf1

View File

@ -90,7 +90,7 @@ TaskEdit * taskedit_new(Todo * todo, Task * task)
gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5);
gtk_size_group_add_widget(group, widget);
gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
taskedit->priority = gtk_combo_box_entry_new_text();
taskedit->priority = gtk_combo_box_new_with_entry();
entry = gtk_bin_get_child(GTK_BIN(taskedit->priority));
gtk_entry_set_text(GTK_ENTRY(entry), task_get_priority(task));
gtk_box_pack_start(GTK_BOX(hbox), taskedit->priority, TRUE, TRUE, 0);
@ -116,7 +116,7 @@ TaskEdit * taskedit_new(Todo * todo, Task * task)
#endif
bbox = gtk_hbutton_box_new();
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 4);
gtk_box_set_spacing(GTK_BOX(bbox), 4);
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
_on_taskedit_cancel), taskedit);
@ -125,7 +125,7 @@ TaskEdit * taskedit_new(Todo * todo, Task * task)
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
_on_taskedit_ok), taskedit);
gtk_container_add(GTK_CONTAINER(bbox), widget);
gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, TRUE, 0);
gtk_box_pack_end(GTK_BOX(vbox), bbox, FALSE, TRUE, 0);
gtk_container_set_border_width(GTK_CONTAINER(taskedit->window), 4);
gtk_container_add(GTK_CONTAINER(taskedit->window), vbox);
gtk_widget_show_all(taskedit->window);