]> www.fi.muni.cz Git - evince.git/commitdiff
Use GTK_RESPONSE_CLOSE instead of GTK_RESPONSE_CANCEL for the close
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 27 Dec 2008 18:37:23 +0000 (18:37 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 27 Dec 2008 18:37:23 +0000 (18:37 +0000)
2008-12-27  Carlos Garcia Campos  <carlosgc@gnome.org>

* cut-n-paste/gedit-message-area/gedit-message-area.[ch]:

Use GTK_RESPONSE_CLOSE instead of GTK_RESPONSE_CANCEL for the
close button. Add a function to get the contents of the message
area.

svn path=/trunk/; revision=3307

ChangeLog
cut-n-paste/gedit-message-area/gedit-message-area.c
cut-n-paste/gedit-message-area/gedit-message-area.h

index 30685690695c391ce24e02b534df753472493699..141c55ccae8b34bbac4b34230eac339d41beab24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-27  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * cut-n-paste/gedit-message-area/gedit-message-area.[ch]:
+
+       Use GTK_RESPONSE_CLOSE instead of GTK_RESPONSE_CANCEL for the
+       close button. Add a function to get the contents of the message
+       area.
+       
 2008-12-24  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/Makefile.am:
index 7fb88cc9c255c23efbd9c41c6153dccbcc363ff9..0821167bff8bf9254dc710b76038f97a603cda54 100644 (file)
@@ -132,12 +132,12 @@ find_button (GeditMessageArea *message_area,
 static void
 gedit_message_area_close (GeditMessageArea *message_area)
 {
-       if (!find_button (message_area, GTK_RESPONSE_CANCEL))
+       if (!find_button (message_area, GTK_RESPONSE_CLOSE))
                return;
 
        /* emit response signal */
        gedit_message_area_response (GEDIT_MESSAGE_AREA (message_area),
-                                    GTK_RESPONSE_CANCEL);
+                                    GTK_RESPONSE_CLOSE);
 }
 
 static gboolean
@@ -350,6 +350,12 @@ gedit_message_area_set_contents    (GeditMessageArea *message_area,
                            0);
 }
 
+GtkWidget *
+gedit_message_area_get_contents (GeditMessageArea *message_area)
+{
+       return message_area->priv->contents;
+}
+
 GtkWidget*
 gedit_message_area_add_button (GeditMessageArea *message_area,
                               const gchar      *button_text,
index 711b64e2fe8238a7a6b8285dece75478d92124eb..aaa97a534a36f61fd0d379cb4316482a020dffbc 100644 (file)
@@ -93,6 +93,7 @@ GtkWidget     *gedit_message_area_new_with_buttons    (const gchar      *first_button_t
 
 void            gedit_message_area_set_contents        (GeditMessageArea *message_area,
                                                         GtkWidget        *contents);
+GtkWidget       *gedit_message_area_get_contents        (GeditMessageArea *message_area);
                                         
 void            gedit_message_area_add_action_widget   (GeditMessageArea *message_area,
                                                         GtkWidget        *child,