diff options
author | Christian Dywan <christian@twotoasts.de> | 2012-08-09 01:02:56 +0200 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2012-08-09 01:02:56 +0200 |
commit | 7a7447d3efbe434131569ff70e0d173a82e69f2f (patch) | |
tree | 35fbc0e8134003a62b8f9e551286a94c6247e051 /panels | |
parent | 629d44689f78f34621bd34ecb8747e0112e15548 (diff) | |
download | midori-7a7447d3efbe434131569ff70e0d173a82e69f2f.tar.gz |
Check sokoke_has_default instead of placeholder text
It is set if there's a placeholder (and GTK+ 3 returns NULL text).
Diffstat (limited to 'panels')
-rw-r--r-- | panels/midori-bookmarks.c | 2 | ||||
-rw-r--r-- | panels/midori-history.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c index 0f6b5d71..39b4950a 100644 --- a/panels/midori-bookmarks.c +++ b/panels/midori-bookmarks.c @@ -1002,7 +1002,7 @@ midori_bookmarks_filter_entry_changed_cb (GtkEntry* entry, if (bookmarks->filter_timeout) g_source_remove (bookmarks->filter_timeout); - if (gtk_entry_get_placeholder_text (entry) != NULL) + if (!g_object_get_data (G_OBJECT (entry), "sokoke_has_default")) katze_assign (bookmarks->filter, g_strdup (gtk_entry_get_text (entry))); else katze_assign (bookmarks->filter, NULL); diff --git a/panels/midori-history.c b/panels/midori-history.c index b8ac99ee..c1bb1816 100644 --- a/panels/midori-history.c +++ b/panels/midori-history.c @@ -968,7 +968,7 @@ midori_history_filter_entry_changed_cb (GtkEntry* entry, history->filter_timeout = g_timeout_add (COMPLETION_DELAY, midori_history_filter_timeout_cb, history); - if (gtk_entry_get_placeholder_text (entry) != NULL) + if (!g_object_get_data (G_OBJECT (entry), "sokoke_has_default")) katze_assign (history->filter, g_strdup (gtk_entry_get_text (entry))); else katze_assign (history->filter, NULL); |