Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Apps
parole
Commits
4ea4c5a0
Commit
4ea4c5a0
authored
Jun 03, 2013
by
Sean Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import patch for no gstreamer codec-installer in freebsd
parent
56af953d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/gst/parole-gst.c
src/gst/parole-gst.c
+15
-1
No files found.
src/gst/parole-gst.c
View file @
4ea4c5a0
...
...
@@ -1579,22 +1579,36 @@ parole_gst_missing_codec_dialog(ParoleGst *gst, GstMessage *msg)
dialog
=
GTK_MESSAGE_DIALOG
(
gtk_message_dialog_new_with_markup
(
NULL
,
GTK_DIALOG_MODAL
|
GTK_DIALOG_DESTROY_WITH_PARENT
,
#if defined(__linux__)
GTK_MESSAGE_QUESTION
,
#elif defined(__FreeBSD__)
GTK_MESSAGE_WARNING
,
#endif
GTK_BUTTONS_NONE
,
"<b><big>%s</big></b>"
,
_
(
"Additional software is required."
)
));
#if defined(__linux__)
gtk_dialog_add_buttons
(
GTK_DIALOG
(
dialog
),
_
(
"Don't Install"
),
GTK_RESPONSE_REJECT
,
_
(
"Install"
),
GTK_RESPONSE_ACCEPT
,
NULL
);
#elif defined(__FreeBSD__)
gtk_dialog_add_button
(
GTK_DIALOG
(
dialog
),
GTK_STOCK_OK
,
GTK_RESPONSE_ACCEPT
);
#endif
gtk_message_dialog_format_secondary_markup
(
dialog
,
#if defined(__linux__)
"Parole needs <b>%s</b> to play this file.
\n
"
"It can be installed automatically."
,
#elif defined(__FreeBSD__)
"Parole needs <b>%s</b> to play this file."
,
#endif
desc
);
return
GTK_DIALOG
(
dialog
);
...
...
@@ -1718,7 +1732,7 @@ parole_gst_bus_event (GstBus *bus, GstMessage *msg, gpointer data)
#endif
gst_install_plugins_context_free
(
ctx
);
}
else
if
(
response
==
GTK_RESPONSE_REJECT
)
else
if
(
(
response
==
GTK_RESPONSE_REJECT
)
||
(
response
==
GTK_RESPONSE_OK
)
)
gtk_widget_destroy
(
GTK_WIDGET
(
dialog
));
}
break
;
...
...
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