Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
9ffd1f7a
Commit
9ffd1f7a
authored
Dec 01, 2010
by
Cosimo Cecchi
Browse files
app-chooser-button: make sure to always get a valid iter
Even in case there are no installed applications for our content type.
parent
959fc60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkappchooserbutton.c
View file @
9ffd1f7a
...
...
@@ -262,6 +262,8 @@ gtk_app_chooser_button_populate (GtkAppChooserButton *self)
recommended_apps
=
g_app_info_get_recommended_for_type
(
self
->
priv
->
content_type
);
first
=
TRUE
;
get_first_iter
(
self
->
priv
->
store
,
&
iter
);
for
(
l
=
recommended_apps
;
l
!=
NULL
;
l
=
l
->
next
)
{
app
=
l
->
data
;
...
...
@@ -275,7 +277,6 @@ gtk_app_chooser_button_populate (GtkAppChooserButton *self)
if
(
first
)
{
get_first_iter
(
self
->
priv
->
store
,
&
iter
);
first
=
FALSE
;
}
else
...
...
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