Commit 5d9166f1 authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford

Fix to use GtkSelectionMode. ditto ditto ditto.

Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>

	* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
	* tests/treestoretest.c (make_window): ditto
	* demos/gtk-demo/main.c (create_tree): ditto
	* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
parent 892496c8
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
* tests/treestoretest.c (make_window): ditto
* demos/gtk-demo/main.c (create_tree): ditto
* demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
......
......@@ -685,7 +685,7 @@ create_tree (void)
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection),
GTK_TREE_SELECTION_SINGLE);
GTK_SELECTION_BROWSE);
gtk_widget_set_size_request (tree_view, 200, -1);
for (i=0; i < G_N_ELEMENTS (testgtk_demos); i++)
......
......@@ -494,7 +494,7 @@ do_stock_browser (void)
FALSE, FALSE, 0);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
gtk_tree_selection_set_mode (selection, GTK_TREE_SELECTION_SINGLE);
gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
g_signal_connect (G_OBJECT (selection),
"changed",
......
......@@ -329,7 +329,7 @@ main (int argc, char *argv[])
tree_view = gtk_tree_view_new_with_model (model);
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)),
GTK_TREE_SELECTION_MULTI);
GTK_SELECTION_MULTIPLE);
renderer = gtk_cell_renderer_text_new ();
col_offset = gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (tree_view),
-1, "Holiday",
......
......@@ -70,7 +70,7 @@ main (int argc, char *argv[])
g_print ("start model\n");
tree_view = gtk_tree_view_new_with_model (model);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)),
GTK_TREE_SELECTION_MULTI);
GTK_SELECTION_MULTIPLE);
for (j = 0; j < 2; j++)
for (i = 0; data[i].word_1 != NULL; i++)
{
......
......@@ -249,7 +249,7 @@ make_window (gint view_type)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
selection = G_OBJECT (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)));
gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection), GTK_TREE_SELECTION_SINGLE);
gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection), GTK_SELECTION_SINGLE);
/* Put them together */
gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment