diff options
author | jstebbins <[email protected]> | 2014-12-04 21:51:58 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-04 21:51:58 +0000 |
commit | c8ba2592e8093444f44ce38123f2c023d71f01fc (patch) | |
tree | 1d506a4c02280c838d285cb4a02945ef3cb16df6 /gtk/src/callbacks.c | |
parent | 9a22df485d2ec381edc42492b00b49c72d72c22c (diff) |
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
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 51 |
1 files changed, 0 insertions, 51 deletions
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 <dbt.h> #endif -#if defined(_USE_APP_IND) -#include <libappindicator/app-indicator.h> -#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) { @@ -3982,30 +3955,6 @@ use_m4v_changed_cb(GtkWidget *widget, signal_user_data_t *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) { g_debug("vqual_granularity_changed_cb"); |