[gnome-dictionary] app: remove obsolete gdict_window_defbox_selection_changed
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dictionary] app: remove obsolete gdict_window_defbox_selection_changed
- Date: Fri, 19 Jun 2015 19:49:28 +0000 (UTC)
commit 272a586cca6e738463aec21e6037a81e09e9e309
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Fri Jun 19 21:48:09 2015 +0200
app: remove obsolete gdict_window_defbox_selection_changed
src/gdict-window.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/gdict-window.c b/src/gdict-window.c
index 130904e..1eeeca6 100644
--- a/src/gdict-window.c
+++ b/src/gdict-window.c
@@ -1284,21 +1284,6 @@ gdict_window_link_clicked (GdictDefbox *defbox,
}
static void
-gdict_window_defbox_selection_changed (GdictDefbox *defbox,
- GdictWindow *window)
-{
- GAction *action;
- gboolean has_selection;
-
- action = g_action_map_lookup_action (G_ACTION_MAP (window), "copy");
- if (action)
- {
- has_selection = gdict_defbox_get_has_selection (defbox);
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), has_selection);
- }
-}
-
-static void
gdict_window_drag_data_received_cb (GtkWidget *widget,
GdkDragContext *context,
gint x,
@@ -1430,10 +1415,6 @@ gdict_window_constructor (GType type,
g_signal_connect (window->defbox, "link-clicked",
G_CALLBACK (gdict_window_link_clicked),
window);
- g_signal_connect (GDICT_DEFBOX (window->defbox), "selection-changed",
- G_CALLBACK (gdict_window_defbox_selection_changed),
- window);
- gdict_window_defbox_selection_changed (GDICT_DEFBOX (window->defbox), window);
gtk_drag_dest_set (window->defbox,
GTK_DEST_DEFAULT_ALL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]