diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-09 00:56:33 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-09 01:00:00 +0800 |
commit | 2fa4ec1334a90d22c9a54d150d6e4722be9bfe1c (patch) | |
tree | 0ed8a173410abe5dd37ee4e887e4ae62b80366aa /e-util | |
parent | dd65b18ddf2f4e7fdc108b0ed147658c36103eea (diff) | |
download | gsoc2013-evolution-2fa4ec1334a90d22c9a54d150d6e4722be9bfe1c.tar.gz gsoc2013-evolution-2fa4ec1334a90d22c9a54d150d6e4722be9bfe1c.tar.zst gsoc2013-evolution-2fa4ec1334a90d22c9a54d150d6e4722be9bfe1c.zip |
rename e_alert_get_buttons -> e_alert_peek_buttons
Make it obvious that this does not need to be freed like the other things that
use get_* (e.g. e_alert_get_title)
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-alert-dialog.c | 2 | ||||
-rw-r--r-- | e-util/e-alert.c | 2 | ||||
-rw-r--r-- | e-util/e-alert.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c index eb89e68fe6..a14df698e2 100644 --- a/e-util/e-alert-dialog.c +++ b/e-util/e-alert-dialog.c @@ -158,7 +158,7 @@ e_alert_dialog_constructed (GObject *obj) g_signal_connect(self, "response", G_CALLBACK(dialog_response_cb), NULL); } - b = e_alert_get_buttons (alert); + b = e_alert_peek_buttons (alert); if (b == NULL) { gtk_dialog_add_button((GtkDialog*) self, GTK_STOCK_OK, GTK_RESPONSE_OK); } else { diff --git a/e-util/e-alert.c b/e-util/e-alert.c index b0e0449d81..ff8801ff9e 100644 --- a/e-util/e-alert.c +++ b/e-util/e-alert.c @@ -659,7 +659,7 @@ e_alert_get_scroll (EAlert *alert) } struct _e_alert_button * -e_alert_get_buttons (EAlert *alert) +e_alert_peek_buttons (EAlert *alert) { g_return_val_if_fail (alert && alert->priv && alert->priv->definition, NULL); return alert->priv->definition->buttons; diff --git a/e-util/e-alert.h b/e-util/e-alert.h index f123be0dda..700f6bed59 100644 --- a/e-util/e-alert.h +++ b/e-util/e-alert.h @@ -109,7 +109,7 @@ gchar *e_alert_get_primary_text (EAlert *alert); gchar *e_alert_get_secondary_text (EAlert *alert); const gchar *e_alert_peek_help_uri (EAlert *alert); gboolean e_alert_get_scroll (EAlert *alert); -struct _e_alert_button *e_alert_get_buttons (EAlert *alert); +struct _e_alert_button *e_alert_peek_buttons (EAlert *alert); G_END_DECLS |