[gtk+] Drop pack consideration from gtk_notebook_search_page
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop pack consideration from gtk_notebook_search_page
- Date: Tue, 4 Jan 2011 07:23:27 +0000 (UTC)
commit f9d6bc6cca40e9f9fd360f49dfb9c6e939b0fc42
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 4 01:39:18 2011 -0500
Drop pack consideration from gtk_notebook_search_page
gtk/gtknotebook.c | 18 +++---------------
1 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index d96bad1..680e46b 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4897,23 +4897,11 @@ gtk_notebook_search_page (GtkNotebook *notebook,
GtkNotebookPrivate *priv = notebook->priv;
GtkNotebookPage *page = NULL;
GList *old_list = NULL;
- gint flag = 0;
-
- switch (direction)
- {
- case STEP_PREV:
- flag = GTK_PACK_END;
- break;
-
- case STEP_NEXT:
- flag = GTK_PACK_START;
- break;
- }
if (list)
page = list->data;
- if (!page || page->pack == flag)
+ if (!page || direction == STEP_NEXT)
{
if (list)
{
@@ -4926,7 +4914,7 @@ gtk_notebook_search_page (GtkNotebook *notebook,
while (list)
{
page = list->data;
- if (page->pack == flag &&
+ if (direction == STEP_NEXT &&
(!find_visible ||
(gtk_widget_get_visible (page->child) &&
(!page->tab_label || NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, page)))))
@@ -4944,7 +4932,7 @@ gtk_notebook_search_page (GtkNotebook *notebook,
while (list)
{
page = list->data;
- if (page->pack != flag &&
+ if (direction == STEP_PREV &&
(!find_visible ||
(gtk_widget_get_visible (page->child) &&
(!page->tab_label || NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, page)))))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]