Only reorder tabs if the focus is in the tab. (#350342, Carlos Garnacho
2006-10-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only reorder tabs if the focus is in the tab. (#350342, Carlos Garnacho Parro)
This commit is contained in:

committed by
Matthias Clasen

parent
b140b48e71
commit
16d8cb9559
@ -1,3 +1,9 @@
|
|||||||
|
2006-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
|
||||||
|
reorder tabs if the focus is in the tab. (#350342, Carlos
|
||||||
|
Garnacho Parro)
|
||||||
|
|
||||||
2006-10-08 Michael Emmel <mike.emmel@gmail.com>
|
2006-10-08 Michael Emmel <mike.emmel@gmail.com>
|
||||||
|
|
||||||
* gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611)
|
* gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611)
|
||||||
|
@ -1231,6 +1231,9 @@ gtk_notebook_reorder_tab (GtkNotebook *notebook,
|
|||||||
GList *last, *child;
|
GList *last, *child;
|
||||||
gint page_num;
|
gint page_num;
|
||||||
|
|
||||||
|
if (!gtk_widget_is_focus (GTK_WIDGET (notebook)))
|
||||||
|
return;
|
||||||
|
|
||||||
if (!notebook->cur_page ||
|
if (!notebook->cur_page ||
|
||||||
!notebook->cur_page->reorderable)
|
!notebook->cur_page->reorderable)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user