From c796974152b517e1164127029f55655e91b84d6e Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 6 Jul 2008 16:28:01 +0200 Subject: [PATCH] Remove remnants of tab iconification, fixes swalloed clicks. --- midori/midori-webview.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/midori/midori-webview.c b/midori/midori-webview.c index 2733bdb8..1b87c7ed 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -795,22 +795,7 @@ midori_web_view_tab_label_button_release_event (GtkWidget* tab_label, GdkEventButton* event, MidoriWebView* web_view) { - if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) - { - /* Toggle the label visibility on double click */ - GtkWidget* child = gtk_bin_get_child (GTK_BIN (tab_label)); - GList* children = gtk_container_get_children (GTK_CONTAINER (child)); - child = (GtkWidget*)g_list_nth_data (children, 1); - gboolean visible = gtk_widget_get_child_visible (GTK_WIDGET (child)); - gtk_widget_set_child_visible (GTK_WIDGET (child), !visible); - gint width, height; - sokoke_widget_get_text_size(tab_label, "M", &width, &height); - gtk_widget_set_size_request (child, !visible - ? width * web_view->tab_label_size : 0, !visible ? -1 : 0); - g_list_free (children); - return TRUE; - } - else if (event->button == 2) + if (event->button == 2) { /* Close the web view on middle click */ g_signal_emit (web_view, signals[CLOSE], 0);