From c8ba2592e8093444f44ce38123f2c023d71f01fc Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 4 Dec 2014 21:51:58 +0000 Subject: LinGui: remove POS appindicator It's nothing but trouble. Buggy POS ubuntu crapware. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6586 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) (limited to 'gtk/src/callbacks.c') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 5d260679f..d73913921 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -60,10 +60,6 @@ #include #endif -#if defined(_USE_APP_IND) -#include -#endif - #include "hb.h" #include "callbacks.h" #include "queuehandler.h" @@ -3229,16 +3225,6 @@ ghb_backend_events(signal_user_data_t *ud) { gchar *status_str; - if (ghb_settings_get_boolean(ud->prefs, "show_status")) - { -#if defined(_USE_APP_IND) - char * ai_status_str= g_strdup_printf( - "%.2f%%", - 100.0 * status.queue.progress); - app_indicator_set_label( ud->ai, ai_status_str, "99.99%"); - g_free(ai_status_str); -#endif - } status_str = searching_status_string(ud, &status.queue); gtk_label_set_text (work_status, status_str); gtk_progress_bar_set_fraction (progress, status.queue.progress); @@ -3248,16 +3234,6 @@ ghb_backend_events(signal_user_data_t *ud) { gchar *status_str; - if (ghb_settings_get_boolean(ud->prefs, "show_status")) - { -#if defined(_USE_APP_IND) - char * ai_status_str= g_strdup_printf( - "%.2f%%", - 100.0 * status.queue.progress); - app_indicator_set_label( ud->ai, ai_status_str, "99.99%"); - g_free(ai_status_str); -#endif - } status_str = working_status_string(ud, &status.queue); gtk_label_set_text (work_status, status_str); gtk_progress_bar_set_fraction (progress, status.queue.progress); @@ -3327,9 +3303,6 @@ ghb_backend_events(signal_user_data_t *ud) } ghb_save_queue(ud->queue); ud->cancel_encode = GHB_CANCEL_NONE; -#if defined(_USE_APP_IND) - app_indicator_set_label( ud->ai, "", "99.99%"); -#endif } else if (status.queue.state & GHB_STATE_MUXING) { @@ -3981,30 +3954,6 @@ use_m4v_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_update_destination_extension(ud); } -G_MODULE_EXPORT void -show_status_cb(GtkWidget *widget, signal_user_data_t *ud) -{ - g_debug("show_status_cb"); - ghb_widget_to_setting (ud->prefs, widget); - ghb_check_dependency(ud, widget, NULL); - const gchar *name = ghb_get_setting_key(widget); - ghb_pref_set(ud->prefs, name); - -#if defined(_USE_APP_IND) - if (ud->ai) - { - if (ghb_settings_get_boolean(ud->prefs, "show_status")) - { - app_indicator_set_status(ud->ai, APP_INDICATOR_STATUS_ACTIVE); - } - else - { - app_indicator_set_status(ud->ai, APP_INDICATOR_STATUS_PASSIVE); - } - } -#endif -} - G_MODULE_EXPORT void vqual_granularity_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { -- cgit v1.2.3