[gtk+] tests: Drop use of deprecated api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Drop use of deprecated api
- Date: Mon, 4 Aug 2014 10:28:15 +0000 (UTC)
commit 9e3626ee24de7cde2051f23b857b9fa303e39b00
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 4 10:11:50 2014 +0200
tests: Drop use of deprecated api
Don't use gtk_tree_view_set_rules_hint anymore.
tests/testtreeedit.c | 1 -
tests/testtreeflow.c | 1 -
tests/testtreefocus.c | 2 --
tests/testtreesort.c | 5 -----
tests/testtreeview.c | 5 -----
tests/treestoretest.c | 1 -
6 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c
index 01af2a5..ff25735 100644
--- a/tests/testtreeedit.c
+++ b/tests/testtreeedit.c
@@ -252,7 +252,6 @@ main (gint argc, gchar **argv)
tree_model = create_model ();
tree_view = gtk_tree_view_new_with_model (tree_model);
g_signal_connect (tree_view, "button_press_event", G_CALLBACK (button_press_event), NULL);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tree_view), TRUE);
column = gtk_tree_view_column_new ();
diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c
index efbb792..b243bc5 100644
--- a/tests/testtreeflow.c
+++ b/tests/testtreeflow.c
@@ -148,7 +148,6 @@ main (int argc, char *argv[])
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (tree_view), path, NULL, TRUE, 0.5, 0.0);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
gtk_tree_selection_select_path (selection, path);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tree_view), FALSE);
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (tree_view),
-1,
diff --git a/tests/testtreefocus.c b/tests/testtreefocus.c
index 5fe6f0d..024b1bd 100644
--- a/tests/testtreefocus.c
+++ b/tests/testtreefocus.c
@@ -363,7 +363,6 @@ main (int argc, char *argv[])
model = make_model ();
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_SELECTION_MULTIPLE);
renderer = gtk_cell_renderer_text_new ();
@@ -480,7 +479,6 @@ main (int argc, char *argv[])
tree_view = gtk_tree_view_new_with_model (model);
g_object_unref (model);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (tree_view),
-1, "Holiday Column",
diff --git a/tests/testtreesort.c b/tests/testtreesort.c
index b45ede0..c276c6d 100644
--- a/tests/testtreesort.c
+++ b/tests/testtreesort.c
@@ -196,8 +196,6 @@ main (int argc, char *argv[])
ssmodel = gtk_tree_model_sort_new_with_model (GTK_TREE_MODEL (smodel));
g_object_unref (model);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
-
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("First Word", renderer,
"text", WORD_COLUMN_1,
@@ -268,8 +266,6 @@ main (int argc, char *argv[])
tree_view2 = gtk_tree_view_new_with_model (smodel);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view2), TRUE);
-
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("First Word", renderer,
@@ -340,7 +336,6 @@ main (int argc, char *argv[])
tree_view3 = gtk_tree_view_new_with_model (ssmodel);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view3), TRUE);
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("First Word", renderer,
diff --git a/tests/testtreeview.c b/tests/testtreeview.c
index 95db9ea..8e00395 100644
--- a/tests/testtreeview.c
+++ b/tests/testtreeview.c
@@ -316,17 +316,12 @@ set_columns_type (GtkTreeView *tree_view, ColumnsType type)
col = gtk_tree_view_get_column (tree_view, 0);
}
- gtk_tree_view_set_rules_hint (tree_view, FALSE);
-
switch (type)
{
case COLUMNS_NONE:
break;
case COLUMNS_LOTS:
- /* with lots of columns we need to turn on rules */
- gtk_tree_view_set_rules_hint (tree_view, TRUE);
-
rend = gtk_cell_renderer_text_new ();
col = gtk_tree_view_column_new_with_attributes ("Column 1",
diff --git a/tests/treestoretest.c b/tests/treestoretest.c
index a3ace60..6730689 100644
--- a/tests/treestoretest.c
+++ b/tests/treestoretest.c
@@ -324,7 +324,6 @@ make_window (gint view_type)
break;
}
- 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_SELECTION_SINGLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]