Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 302387 Details for
Bug 442398
"Do not ask me again" buttons don't work
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch
do-not-show.patch (text/plain), 2.36 KB, created by
Matthias Clasen
on 2008-04-14 20:37:29 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Matthias Clasen
Created:
2008-04-14 20:37:29 UTC
Size:
2.36 KB
patch
obsolete
>diff --git a/src/gpk-notify.c b/src/gpk-notify.c >index 50b47f0..fab0d6e 100644 >--- a/src/gpk-notify.c >+++ b/src/gpk-notify.c >@@ -317,7 +317,7 @@ gpk_notify_update_system_finished_cb (PkClient *client, PkExitEnum exit_code, gu > } > > /* are we accepting notifications */ >- value = gconf_client_get_bool (notify->priv->gconf_client, GPK_CONF_NOTIFY_MESSAGE, NULL); >+ value = gconf_client_get_bool (notify->priv->gconf_client, GPK_CONF_NOTIFY_RESTART, NULL); > if (value == FALSE) { > pk_debug ("not showing notification as prevented in gconf"); > return; >@@ -403,14 +403,21 @@ gpk_notify_update_system (GpkNotify *notify) > if (ret) { > gpk_smart_icon_set_icon_name (notify->priv->sicon, NULL); > } else { >- message = g_strdup_printf (_("The error was: %s"), error->message); >- pk_warning ("%s", message); >+ /* are we accepting notifications */ >+ value = gconf_client_get_bool (notify->priv->gconf_client, GPK_CONF_NOTIFY_RESTART, NULL); >+ if (value == FALSE) >+ pk_debug ("not showing notification as prevented in gconf"); >+ } >+ else { >+ message = g_strdup_printf (_("The error was: %s"), error->message); >+ pk_warning ("%s", message); >+ gpk_smart_icon_notify_new (notify->priv->sicon, _("Failed to update system"), message, >+ "process-stop", GPK_NOTIFY_URGENCY_LOW, GPK_NOTIFY_TIMEOUT_SHORT); >+ g_free (message); >+ gpk_smart_icon_notify_button (notify->priv->sicon, GPK_NOTIFY_BUTTON_DO_NOT_SHOW_AGAIN, GPK_CONF_NOTIFY_ERROR); >+ gpk_smart_icon_notify_show (notify->priv->sicon); >+ } > g_error_free (error); >- gpk_smart_icon_notify_new (notify->priv->sicon, _("Failed to update system"), message, >- "process-stop", GPK_NOTIFY_URGENCY_LOW, GPK_NOTIFY_TIMEOUT_SHORT); >- g_free (message); >- gpk_smart_icon_notify_button (notify->priv->sicon, GPK_NOTIFY_BUTTON_DO_NOT_SHOW_AGAIN, GPK_CONF_NOTIFY_ERROR); >- gpk_smart_icon_notify_show (notify->priv->sicon); > } > return ret; > } >@@ -539,7 +546,7 @@ gpk_notify_auto_update_message (GpkNotify *notify) > g_return_if_fail (GPK_IS_NOTIFY (notify)); > > /* are we accepting notifications */ >- value = gconf_client_get_bool (notify->priv->gconf_client, GPK_CONF_NOTIFY_MESSAGE, NULL); >+ value = gconf_client_get_bool (notify->priv->gconf_client, GPK_CONF_NOTIFY_STARTED, NULL); > if (value == FALSE) { > pk_debug ("not showing notification as prevented in gconf"); > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 442398
: 302387 |
302524