[gnome-session] Use accessor functions instead direct access. Second patch
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-session] Use accessor functions instead direct access. Second patch
- Date: Tue, 8 Dec 2009 17:38:05 +0000 (UTC)
commit c1e06e09f2580f9edd75f2d3609062d52c84b6f6
Author: Javier Jardón <javierjc1982 gmail com>
Date: Sat Aug 29 19:54:39 2009 +0200
Use accessor functions instead direct access. Second patch
Replace gtk_label_set_text() with gtk_message_dialog_set_markup()
so we don't have to use GTK_MESSAGE_DIALOG (logout_dialog)->label.
Also, We don't need to escape the text since there's no markup
in the string.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=586767
gnome-session/gsm-logout-dialog.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-logout-dialog.c b/gnome-session/gsm-logout-dialog.c
index de4d22a..760d0ce 100644
--- a/gnome-session/gsm-logout-dialog.c
+++ b/gnome-session/gsm-logout-dialog.c
@@ -440,8 +440,7 @@ gsm_get_dialog (GsmDialogLogoutType type,
icon_name, GTK_ICON_SIZE_DIALOG);
gtk_window_set_icon_name (GTK_WINDOW (logout_dialog), icon_name);
gtk_window_set_position (GTK_WINDOW (logout_dialog), GTK_WIN_POS_CENTER_ALWAYS);
- gtk_label_set_text (GTK_LABEL (GTK_MESSAGE_DIALOG (logout_dialog)->label),
- primary_text);
+ gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (logout_dialog), primary_text);
gtk_dialog_set_default_response (GTK_DIALOG (logout_dialog),
logout_dialog->priv->default_response);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]