[gnome-documents] places: Use a X close button instead of "Close"
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] places: Use a X close button instead of "Close"
- Date: Thu, 3 Apr 2014 11:08:01 +0000 (UTC)
commit b86b54757d0b84b525958a9a0ce23b7d511f1c8d
Author: Marta Milakovic <marta milakovic gmail com>
Date: Wed Apr 2 18:36:34 2014 +0200
places: Use a X close button instead of "Close"
https://bugzilla.gnome.org/show_bug.cgi?id=727257
src/places.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/places.js b/src/places.js
index dabe99d..e81dcb5 100644
--- a/src/places.js
+++ b/src/places.js
@@ -53,7 +53,6 @@ const PlacesDialog = new Lang.Class({
default_height: 600,
title: "",
hexpand: true });
- this.widget.add_button(_("Close"), Gtk.ResponseType.CLOSE);
let contentArea = this.widget.get_content_area();
this._stack = new Gtk.Stack({ border_width: 5,
@@ -83,12 +82,12 @@ const PlacesDialog = new Lang.Class({
if (link.action.type == EvDocument.LinkActionType.GOTO_DEST) {
this._gotoDest(link.action.dest);
}
- this.widget.response(Gtk.ResponseType.CLOSE);
+ this.widget.response(Gtk.ResponseType.DELETE_EVENT);
},
_handleBookmark: function(bookmark) {
this._model.set_page(bookmark.page_number);
- this.widget.response(Gtk.ResponseType.CLOSE);
+ this.widget.response(Gtk.ResponseType.DELETE_EVENT);
},
_gotoDest: function(dest) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]