[gtk+] icon browser: stop selecting
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icon browser: stop selecting
- Date: Sun, 22 Feb 2015 19:44:38 +0000 (UTC)
commit ee857cd261ba8409f582e3b9c8aa073f79774e7f
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 22 11:11:09 2015 -0500
icon browser: stop selecting
We don't need the selection here.
demos/icon-browser/iconbrowserwin.c | 7 -------
demos/icon-browser/window.ui | 2 +-
2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index 39db096..50709a0 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -72,11 +72,6 @@ set_image (GtkWidget *image, const gchar *name, gint size)
}
static void
-selection_changed (GtkIconView *icon_view, IconBrowserWindow *win)
-{
-}
-
-static void
item_activated (GtkIconView *icon_view, GtkTreePath *path, IconBrowserWindow *win)
{
GtkTreeIter iter;
@@ -759,7 +754,6 @@ icon_browser_window_init (IconBrowserWindow *win)
gtk_tree_model_filter_set_visible_func (win->filter_model, icon_visible_func, win, NULL);
gtk_window_set_transient_for (GTK_WINDOW (win->details), GTK_WINDOW (win));
-
g_signal_connect (win->searchbar, "notify::search-mode-enabled",
G_CALLBACK (search_mode_toggled), win);
@@ -794,7 +788,6 @@ icon_browser_window_class_init (IconBrowserWindowClass *class)
gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), IconBrowserWindow, description);
gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), search_text_changed);
- gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), selection_changed);
gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), item_activated);
gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), selected_context_changed);
gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), symbolic_toggled);
diff --git a/demos/icon-browser/window.ui b/demos/icon-browser/window.ui
index 1318b9a..72eae95 100644
--- a/demos/icon-browser/window.ui
+++ b/demos/icon-browser/window.ui
@@ -108,7 +108,7 @@
<object class="GtkIconView" id="list">
<property name="visible">True</property>
<property name="model">filter_model</property>
- <signal name="selection_changed" handler="selection_changed"/>
+ <property name="selection-mode">none</property>
<signal name="item_activated" handler="item_activated"/>
<child>
<object class="GtkCellRendererPixbuf" id="cell">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]