Lines Matching refs:label_widget
45 Gtk::Label *label_widget = new Gtk::Label();
46 g_assert(label_widget != NULL);
49 label_widget->set_text_with_mnemonic(label_text);
50 label_widget->set_mnemonic_widget(*target);
54 label_widget->set_text(label_text);
56 label_widget->set_alignment(1.0, 0.5);
57 label_widget->show();
60 label_widget->set_hexpand();
61 label_widget->set_halign(Gtk::ALIGN_FILL);
62 label_widget->set_valign(Gtk::ALIGN_CENTER);
65 label_widget->set_margin_start(4);
66 label_widget->set_margin_end(4);
68 label_widget->set_margin_left(4);
69 label_widget->set_margin_right(4);
72 table->attach(*label_widget, col, row, 1, 1);
74 table->attach(*label_widget, col, col+1, row, row+1, (Gtk::EXPAND | Gtk::FILL), static_cast<Gtk::AttachOptions>(0), 4, 0);
77 return label_widget;
83 GtkWidget *label_widget;
85 label_widget = gtk_label_new (label_text);
86 g_assert(label_widget != NULL);
89 gtk_widget_set_halign(label_widget, GTK_ALIGN_END);
91 gtk_misc_set_alignment (GTK_MISC (label_widget), 1.0, 0.5);
94 gtk_widget_show (label_widget);
98 gtk_widget_set_margin_start(label_widget, 4);
99 gtk_widget_set_margin_end(label_widget, 4);
101 gtk_widget_set_margin_left(label_widget, 4);
102 gtk_widget_set_margin_right(label_widget, 4);
104 gtk_widget_set_hexpand(label_widget, TRUE);
105 gtk_widget_set_halign(label_widget, GTK_ALIGN_FILL);
106 gtk_widget_set_valign(label_widget, GTK_ALIGN_CENTER);
107 gtk_grid_attach(GTK_GRID(table), label_widget, col, row, 1, 1);
109 gtk_table_attach(GTK_TABLE (table), label_widget, col, col+1, row, row+1,
113 return label_widget;