[gnome-weather] new-location-dialog: Don't do our own icon management



commit 9fe9183cec83c1d8627833924c4c1405163e6d6b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Jun 16 01:28:21 2013 -0400

    new-location-dialog: Don't do our own icon management
    
    GWeatherLocationEntry is now a GtkSearchEntry.

 data/new-location-dialog.ui |    1 -
 src/window.js               |   10 ----------
 2 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/data/new-location-dialog.ui b/data/new-location-dialog.ui
index 2eda149..5872c8c 100644
--- a/data/new-location-dialog.ui
+++ b/data/new-location-dialog.ui
@@ -51,7 +51,6 @@
                 <property name="width_request">400</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="secondary_icon_name">edit-find-symbolic</property>
                 <property name="activates-default">True</property>
               </object>
               <packing>
diff --git a/src/window.js b/src/window.js
index 26a128d..4f5cd8e 100644
--- a/src/window.js
+++ b/src/window.js
@@ -40,16 +40,6 @@ const NewLocationController = new Lang.Class({
         let dialog = builder.get_object('location-dialog');
         let entry = builder.get_object('location-entry');
 
-        entry.connect('changed', function() {
-            if (entry.text == '')
-                entry.secondary_icon_name = 'edit-find-symbolic';
-            else
-                entry.secondary_icon_name = 'edit-clear-symbolic';
-        });
-        entry.connect('icon-release', function() {
-            entry.text = '';
-        });
-
         dialog.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL);
         dialog.add_button(Gtk.STOCK_ADD, Gtk.ResponseType.OK);
         dialog.set_default_response(Gtk.ResponseType.OK);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]