[telegnome] Remove unused tg_gui_cb_drag function.
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] Remove unused tg_gui_cb_drag function.
- Date: Fri, 10 Oct 2014 23:36:34 +0000 (UTC)
commit 0712dea49df1be3d99ed2373a3dfd60e8870191f
Author: Colin Watson <cjwatson debian org>
Date: Sat Oct 11 00:36:23 2014 +0100
Remove unused tg_gui_cb_drag function.
* src/gui.c (tg_gui_cb_drag): Remove unused function.
* src/gui.h (tg_gui_cb_drag): Remove prototype.
ChangeLog | 5 +++++
src/gui.c | 29 -----------------------------
src/gui.h | 3 ---
3 files changed, 5 insertions(+), 32 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 11c8a19..a911b20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2014-10-11 Colin Watson <cjwatson debian org>
+ * src/gui.c (tg_gui_cb_drag): Remove unused function.
+ * src/gui.h (tg_gui_cb_drag): Remove prototype.
+
+2014-10-11 Colin Watson <cjwatson debian org>
+
Rename principal structures to Tg* and all functions to tg_*, in
preparation for converting everything to a more conventional GObject
structure. No functional changes.
diff --git a/src/gui.c b/src/gui.c
index 4719d0b..8ea6d98 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -697,35 +697,6 @@ tg_gui_cb_zoom (GtkWidget *widget, gpointer data)
tg_gui_get_the_page(TRUE);
}
-void
-tg_gui_cb_drag (GtkWidget *widget, GdkDragContext *context,
- GtkSelectionData *selection_data, guint info, guint32 time)
-{
- const gchar *entry;
-
- switch (info) {
-
- case TARGET_GIF:
- break;
-
- case TARGET_FILE:
- break;
-
- case TARGET_ROOTWIN:
- break;
-
- case TARGET_TXT:
-
- default:
- entry=gtk_entry_get_text(GTK_ENTRY(gui.entry));
- gtk_selection_data_set(selection_data,
- gtk_selection_data_get_target(selection_data), 8,
- (const guchar *)entry, strlen(entry));
-
- break;
- }
-}
-
static gint
tg_gui_keyboard_timer (gpointer g)
{
diff --git a/src/gui.h b/src/gui.h
index 3ae31d7..b0cb207 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -51,9 +51,6 @@ void tg_gui_cb_prev_page (GtkWidget* widget, gpointer data);
void tg_gui_cb_home (GtkWidget* widget, gpointer data);
void tg_gui_cb_goto_page (GtkWidget* widget, gpointer data);
void tg_gui_cb_zoom (GtkWidget *widget, gpointer data);
-void tg_gui_cb_drag (GtkWidget *widget, GdkDragContext *context,
- GtkSelectionData *selection_data, guint info,
- guint32 time);
gint tg_cb_keypress (GtkWidget *widget, GdkEventKey *event);
/* some widgets we need a runtime ref to */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]