diff options
-rw-r--r-- | src/ephy-notebook.c | 27 | ||||
-rw-r--r-- | src/ephy-notebook.h | 3 | ||||
-rw-r--r-- | src/ephy-window.c | 1 |
3 files changed, 0 insertions, 31 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 686cfe932..db07f1ae6 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -54,7 +54,6 @@ struct _EphyNotebookPrivate guint tabs_vis_notifier_id; guint show_tabs : 1; - guint dnd_enabled : 1; }; static void ephy_notebook_init (EphyNotebook *notebook); @@ -78,7 +77,6 @@ static const GtkTargetEntry url_drag_types [] = enum { PROP_0, - PROP_DND_ENABLED, PROP_SHOW_TABS }; @@ -94,18 +92,6 @@ G_DEFINE_TYPE_WITH_CODE (EphyNotebook, ephy_notebook, GTK_TYPE_NOTEBOOK, G_IMPLEMENT_INTERFACE (EPHY_TYPE_LINK, NULL)) -void -ephy_notebook_set_dnd_enabled (EphyNotebook *notebook, - gboolean enabled) -{ - EphyNotebookPrivate *priv = notebook->priv; - - priv->dnd_enabled = enabled; - /* FIXME abort any DNDs in progress */ - - g_object_notify (G_OBJECT (notebook), "dnd-enabled"); -} - static void ephy_notebook_get_property (GObject *object, guint prop_id, @@ -117,9 +103,6 @@ ephy_notebook_get_property (GObject *object, switch (prop_id) { - case PROP_DND_ENABLED: - g_value_set_boolean (value, priv->dnd_enabled); - break; case PROP_SHOW_TABS: g_value_set_boolean (value, priv->show_tabs); break; @@ -136,9 +119,6 @@ ephy_notebook_set_property (GObject *object, switch (prop_id) { - case PROP_DND_ENABLED: - ephy_notebook_set_dnd_enabled (notebook, g_value_get_boolean (value)); - break; case PROP_SHOW_TABS: ephy_notebook_set_show_tabs (notebook, g_value_get_boolean (value)); break; @@ -172,12 +152,6 @@ ephy_notebook_class_init (EphyNotebookClass *klass) GTK_TYPE_WIDGET /* Can't use an interface type here */); g_object_class_install_property (object_class, - PROP_DND_ENABLED, - g_param_spec_boolean ("dnd-enabled", NULL, NULL, - TRUE, - G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); - - g_object_class_install_property (object_class, PROP_SHOW_TABS, g_param_spec_boolean ("show-tabs", NULL, NULL, TRUE, @@ -464,7 +438,6 @@ ephy_notebook_init (EphyNotebook *notebook) gtk_notebook_set_group_name (gnotebook, EPHY_NOTEBOOK_TAB_GROUP_ID); priv->show_tabs = TRUE; - priv->dnd_enabled = TRUE; g_signal_connect (notebook, "button-press-event", (GCallback)button_press_cb, NULL); diff --git a/src/ephy-notebook.h b/src/ephy-notebook.h index cfc6ee793..19e07ed8c 100644 --- a/src/ephy-notebook.h +++ b/src/ephy-notebook.h @@ -71,9 +71,6 @@ int ephy_notebook_add_tab (EphyNotebook *nb, void ephy_notebook_set_show_tabs (EphyNotebook *nb, gboolean show_tabs); -void ephy_notebook_set_dnd_enabled (EphyNotebook *nb, - gboolean enabled); - G_END_DECLS #endif /* EPHY_NOTEBOOK_H */ diff --git a/src/ephy-window.c b/src/ephy-window.c index 19b3031de..6ee99613d 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -3327,7 +3327,6 @@ ephy_window_constructor (GType type, GTK_WIDGET (priv->notebook), TRUE, TRUE, 0); gtk_widget_show (GTK_WIDGET (priv->notebook)); - ephy_notebook_set_dnd_enabled (EPHY_NOTEBOOK (priv->notebook), !priv->is_popup); priv->find_toolbar = ephy_find_toolbar_new (window); g_signal_connect (priv->find_toolbar, "close", |