Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,152
Issues
1,152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
143
Merge Requests
143
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
1f9fd5a9
Commit
1f9fd5a9
authored
Jul 04, 2013
by
Kalev Lember
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: Add tests for gtk_list_box_row_get_index
https://bugzilla.gnome.org/show_bug.cgi?id=703618
parent
b46d583f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
testsuite/gtk/listbox.c
testsuite/gtk/listbox.c
+11
-0
No files found.
testsuite/gtk/listbox.c
View file @
1f9fd5a9
...
...
@@ -106,6 +106,7 @@ test_selection (void)
gint
i
;
gchar
*
s
;
gint
count
;
gint
index
;
list
=
GTK_LIST_BOX
(
gtk_list_box_new
());
g_object_ref_sink
(
list
);
...
...
@@ -153,6 +154,16 @@ test_selection (void)
row2
=
gtk_list_box_get_selected_row
(
list
);
g_assert
(
row2
==
NULL
);
row
=
gtk_list_box_get_row_at_index
(
list
,
20
);
index
=
gtk_list_box_row_get_index
(
row
);
g_assert_cmpint
(
index
,
==
,
20
);
row
=
GTK_LIST_BOX_ROW
(
gtk_list_box_row_new
());
g_object_ref_sink
(
row
);
index
=
gtk_list_box_row_get_index
(
row
);
g_assert_cmpint
(
index
,
==
,
-
1
);
g_object_unref
(
row
);
g_object_unref
(
list
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment