[gnome-clocks] world: Don't do our own search icon handling



commit 78904af15d54ed95408497a82b836a017e3cec82
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Jun 16 01:31:51 2013 -0400

    world: Don't do our own search icon handling
    
    GWeatherLocationEntry is now a GtkSearchEntry.

 src/world.vala |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/world.vala b/src/world.vala
index 10b2239..fdda32a 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -182,21 +182,12 @@ private class LocationDialog : Gtk.Dialog {
         entry.activate.connect (() => {
             location_changed ();
         });
-        entry.icon_release.connect (() => {
-            if (entry.secondary_icon_name == "edit-clear-symbolic") {
-                entry.set_text ("");
-            }
-        });
     }
 
     private void location_changed () {
         GWeather.Location? l = null;
         GWeather.Timezone? t = null;
-        if (entry.get_text () == "") {
-            entry.secondary_icon_name = "edit-find-symbolic";
-        } else {
-            entry.secondary_icon_name = "edit-clear-symbolic";
-
+        if (entry.get_text () != "") {
             l = entry.get_location ();
             if (l != null) {
                 t = l.get_timezone ();


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