gtk+ r21170 - in trunk: . gtk
- From: tbzatek svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21170 - in trunk: . gtk
- Date: Wed, 20 Aug 2008 08:17:35 +0000 (UTC)
Author: tbzatek
Date: Wed Aug 20 08:17:35 2008
New Revision: 21170
URL: http://svn.gnome.org/viewvc/gtk+?rev=21170&view=rev
Log:
2008-08-05 Milan Crha <mcrha redhat com>
* gtk/gtknotebook.c: (gtk_notebook_do_arrow): Allow changing page with
arrows even on non-focusable notebook. (#528091)
Modified:
trunk/ChangeLog
trunk/gtk/gtknotebook.c
Modified: trunk/gtk/gtknotebook.c
==============================================================================
--- trunk/gtk/gtknotebook.c (original)
+++ trunk/gtk/gtknotebook.c Wed Aug 20 08:17:35 2008
@@ -2330,7 +2330,6 @@
GtkNotebookArrow arrow)
{
GtkWidget *widget = GTK_WIDGET (notebook);
- GtkDirectionType dir;
gboolean is_rtl, left;
is_rtl = gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL;
@@ -2342,14 +2341,8 @@
left ? STEP_PREV : STEP_NEXT,
TRUE))
{
- if (notebook->tab_pos == GTK_POS_LEFT ||
- notebook->tab_pos == GTK_POS_RIGHT)
- dir = ARROW_IS_LEFT (arrow) ? GTK_DIR_UP : GTK_DIR_DOWN;
- else
- dir = ARROW_IS_LEFT (arrow) ? GTK_DIR_LEFT : GTK_DIR_RIGHT;
-
+ gtk_notebook_change_current_page (notebook, left ? -1 : 1);
gtk_widget_grab_focus (widget);
- gtk_widget_child_focus (widget, dir);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]