aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-05 04:23:09 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-05 04:23:09 +0800
commit7730057ced6ecc87123ff621593672c80e72d2db (patch)
treeaa760c559e6f3f5771a51c10aca107e5d3d51035 /src
parentcd2cd1d96b0d372fe53c27554e7808e34181f085 (diff)
downloadgsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.tar
gsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.tar.gz
gsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.tar.bz2
gsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.tar.lz
gsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.tar.xz
gsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.tar.zst
gsoc2013-epiphany-7730057ced6ecc87123ff621593672c80e72d2db.zip
Better fix for bug #119461, just use gtk_button_set_focus_on_click().
2005-01-04 Christian Persch <chpe@cvs.gnome.org> * src/ephy-notebook.c: (close_button_clicked_cb), (build_tab_label): Better fix for bug #119461, just use gtk_button_set_focus_on_click(). Thanks to tko for pointing this out to me.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 0d2bab321..26415fda5 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -811,15 +811,6 @@ close_button_clicked_cb (GtkWidget *widget, GtkWidget *tab)
if (inhibited == FALSE)
{
- GtkNotebook *gnotebook;
- GtkWidget *active_tab;
-
- gnotebook = GTK_NOTEBOOK (notebook);
- active_tab = gtk_notebook_get_nth_page
- (gnotebook, gtk_notebook_get_current_page (gnotebook));
- /* focus the active tab, bug #119461 */
- gtk_widget_grab_focus (active_tab);
-
ephy_notebook_remove_tab (notebook, EPHY_TAB (tab));
}
}
@@ -875,8 +866,8 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab)
gtk_button_set_relief (GTK_BUTTON (close_button),
GTK_RELIEF_NONE);
/* don't allow focus on the close button */
- GTK_WIDGET_SET_FLAGS (close_button, GTK_CAN_FOCUS);
- GTK_WIDGET_SET_FLAGS (close_button, GTK_CAN_DEFAULT);
+ gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
+
close_icon_size = gtk_icon_size_from_name (EPHY_ICON_SIZE_TAB_BUTTON);
image = gtk_image_new_from_stock (EPHY_STOCK_CLOSE_TAB, close_icon_size);
gtk_container_add (GTK_CONTAINER (close_button), image);