[glade/ui-incubator: 3/11] Removed treeview from flags editor.
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/ui-incubator: 3/11] Removed treeview from flags editor.
- Date: Thu, 17 Jan 2013 22:15:51 +0000 (UTC)
commit db236667d4da16c12830ba2eec5a902810c3f9cd
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Tue Oct 23 14:47:47 2012 -0700
Removed treeview from flags editor.
gladeui/glade-editor-property.c | 24 ++++++++++--------------
1 files changed, 10 insertions(+), 14 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index 07d539f..2e77781 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -1076,11 +1076,6 @@ glade_eprop_flags_create_treeview (GladeEditorProperty *eprop)
GtkTreeViewColumn *column;
GtkCellRenderer *renderer;
GladeEPropFlags *eprop_flags = GLADE_EPROP_FLAGS (eprop);
- if (!eprop_flags->model)
- eprop_flags->model = GTK_TREE_MODEL (gtk_list_store_new (3, G_TYPE_BOOLEAN,
- G_TYPE_STRING,
- G_TYPE_UINT));
-
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
@@ -1173,26 +1168,27 @@ glade_eprop_flags_show_dialog (GtkWidget *button, GladeEditorProperty *eprop)
static GtkWidget *
glade_eprop_flags_create_input (GladeEditorProperty *eprop)
{
- GtkWidget *vbox, *hbox, *button, *widget;
+ GtkWidget *hbox, *button;
GladeEPropFlags *eprop_flags = GLADE_EPROP_FLAGS (eprop);
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_widget_set_halign (hbox, GTK_ALIGN_START);
+ if (!eprop_flags->model)
+ eprop_flags->model = GTK_TREE_MODEL (gtk_list_store_new (3, G_TYPE_BOOLEAN,
+ G_TYPE_STRING,
+ G_TYPE_UINT));
+
- widget = glade_eprop_flags_create_treeview (eprop);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
eprop_flags->entry = gtk_entry_new ();
gtk_editable_set_editable (GTK_EDITABLE (eprop_flags->entry), FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), eprop_flags->entry, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), eprop_flags->entry, TRUE, TRUE, 0);
button = gtk_button_new_with_label ("...");
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
- gtk_widget_show_all (hbox);
+ gtk_widget_show_all (eprop_flags->entry);
+ gtk_widget_show_all (button);
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (glade_eprop_flags_show_dialog), eprop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]