GNOME Bugzilla – Bug 586767
Use accessor functions instead direct access
Last modified: 2009-12-08 17:41:03 UTC
See http://live.gnome.org/GnomeGoals/UseGseal for more details
Created attachment 137263 [details] [review] Use accessor functions instead direct access Is a partial patch because there is not accesor functions for GtkObject flags ( See bug #562937 ) and there is not accesor functions for GtkWidget allocations ( See bug #548052 )
Pushed your patch with a some coding style fixes. Keeping the bug report open as we haven't fixed all direct-access cases yet.
Created attachment 141995 [details] [review] Replace gtk_label_set_text() with gtk_message_dialog_set_markup() With this patch, gnome-session compiles with -DGSEAL_ENABLED without problems
That patch looks fine to me.
Review of attachment 141995 [details] [review]: Thanks, please commit with the small change! ::: gnome-session/gsm-logout-dialog.c @@ +441,3 @@ 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_message_dialog_set_markup (GTK_MESSAGE_DIALOG (logout_dialog), primary_text); Please add a comment to explain that we don't need to escape the text since there's no markup in the string.
Comment on attachment 141995 [details] [review] Replace gtk_label_set_text() with gtk_message_dialog_set_markup() commit c1e06e09f2580f9edd75f2d3609062d52c84b6f6 Committed with the comment. Thank you!
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.