From: Carlos Garcia Campos Date: Sat, 27 Dec 2008 18:37:23 +0000 (+0000) Subject: Use GTK_RESPONSE_CLOSE instead of GTK_RESPONSE_CANCEL for the close X-Git-Tag: EVINCE_2_25_4~22 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=79758a3ad5df393e161069fed3cc6d743d8fdc8d;p=evince.git Use GTK_RESPONSE_CLOSE instead of GTK_RESPONSE_CANCEL for the close 2008-12-27 Carlos Garcia Campos * 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 --- diff --git a/ChangeLog b/ChangeLog index 30685690..141c55cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-12-27 Carlos Garcia Campos + + * 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 * shell/Makefile.am: diff --git a/cut-n-paste/gedit-message-area/gedit-message-area.c b/cut-n-paste/gedit-message-area/gedit-message-area.c index 7fb88cc9..0821167b 100644 --- a/cut-n-paste/gedit-message-area/gedit-message-area.c +++ b/cut-n-paste/gedit-message-area/gedit-message-area.c @@ -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, diff --git a/cut-n-paste/gedit-message-area/gedit-message-area.h b/cut-n-paste/gedit-message-area/gedit-message-area.h index 711b64e2..aaa97a53 100644 --- a/cut-n-paste/gedit-message-area/gedit-message-area.h +++ b/cut-n-paste/gedit-message-area/gedit-message-area.h @@ -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,