X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-acr.c;h=a2ee6af55913ad63114c07a2713014da716f2a06;hb=37cd3133c06caf3fce7e449a939098f62bd41a55;hp=fc89b822125a4c38ebfabbf62fa8e30c27dc545c;hpb=7557c4bf71b244226c7a248177715dade26aabe5;p=pspp diff --git a/src/ui/gui/psppire-acr.c b/src/ui/gui/psppire-acr.c index fc89b82212..a2ee6af559 100644 --- a/src/ui/gui/psppire-acr.c +++ b/src/ui/gui/psppire-acr.c @@ -40,7 +40,11 @@ #include "psppire-acr.h" #include "helper.h" -G_DEFINE_TYPE (PsppireAcr, psppire_acr, GTK_TYPE_HBOX); +#include "gettext.h" +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid + +G_DEFINE_TYPE (PsppireAcr, psppire_acr, GTK_TYPE_BOX); static void psppire_acr_dispose (GObject *obj) @@ -248,19 +252,20 @@ psppire_acr_set_enabled (PsppireAcr *acr, gboolean status) && row_is_selected (acr)); } - static void psppire_acr_init (PsppireAcr *acr) { - GtkWidget *bb = gtk_vbutton_box_new (); + GtkWidget *bb = gtk_button_box_new (GTK_ORIENTATION_VERTICAL); GtkWidget *sw = gtk_scrolled_window_new (NULL, NULL); + gtk_orientable_set_orientation (GTK_ORIENTABLE (acr), GTK_ORIENTATION_HORIZONTAL); + acr->tv = GTK_TREE_VIEW (gtk_tree_view_new ()); - acr->add_button = gtk_button_new_from_stock (GTK_STOCK_ADD); - acr->change_button = gtk_button_new_from_stock (GTK_STOCK_EDIT); - acr->remove_button = gtk_button_new_from_stock (GTK_STOCK_REMOVE); + acr->add_button = gtk_button_new_with_label (_("Add")); + acr->change_button = gtk_button_new_with_label (_("Edit")); + acr->remove_button = gtk_button_new_with_label (_("Remove")); acr->get_value = NULL; acr->get_value_data = NULL;