diff options
author | jstebbins <[email protected]> | 2012-05-26 08:58:22 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-05-26 08:58:22 +0000 |
commit | 776795b2995044dc92b02e10155fff2644776fe3 (patch) | |
tree | adb7de1cff613148b41bdd7195cb634540ddc5ea /gtk/src/callbacks.c | |
parent | 89b5fd2675d556414ea988408193b8e21a63f159 (diff) |
LinGui: fix a bunch of compiler warnings
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4701 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index a3b71ebb0..5173a6b29 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2081,11 +2081,10 @@ G_MODULE_EXPORT void prefs_dialog_cb(GtkWidget *xwidget, signal_user_data_t *ud) { GtkWidget *dialog; - GtkResponseType response; g_debug("prefs_dialog_cb ()"); dialog = GHB_WIDGET(ud->builder, "prefs_dialog"); - response = gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_hide(dialog); } @@ -2232,15 +2231,14 @@ void ghb_error_dialog(GtkMessageType type, const gchar *message, const gchar *cancel) { GtkWidget *dialog; - GtkResponseType response; - + // Toss up a warning dialog dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, type, GTK_BUTTONS_NONE, "%s", message); gtk_dialog_add_buttons( GTK_DIALOG(dialog), cancel, GTK_RESPONSE_CANCEL, NULL); - response = gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy (dialog); } @@ -5048,13 +5046,10 @@ notify_closed_cb(NotifyNotification *notification, signal_user_data_t *ud) void ghb_notify_done(signal_user_data_t *ud) { - GtkStatusIcon *si; if (ghb_settings_combo_int(ud->settings, "WhenComplete") == 0) return; - si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status")); - #if !defined(_WIN32) NotifyNotification *notification; notification = notify_notification_new( @@ -5065,6 +5060,8 @@ ghb_notify_done(signal_user_data_t *ud) ); #else ,NULL); + + GtkStatusIcon *si = GTK_STATUS_ICON(GHB_OBJECT(ud->builder, "hb_status")); notify_notification_attach_to_status_icon(notification, si); #endif g_signal_connect(notification, "closed", (GCallback)notify_closed_cb, ud); |