[hafqa] [hafqa] [Bug 1084] New: GtkNotebook border graphics broken when scrollable property set to TRUE

From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.org
Date: Mon Feb 19 11:51:42 EET 2007
https://maemo.org/bugzilla/show_bug.cgi?id=1084

           Summary: GtkNotebook border graphics broken when scrollable
                    property set to TRUE
           Product: haf
           Version: sardine
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gtk
        AssignedTo: tommi.komulainen at nokia.com
        ReportedBy: xan.lopez at nokia.com
         QAContact: hafqa at maemo.org


The graphics used for the notebook border are broken due to missing extra
details from maemo-gtk-2.6:

+  /* first, figure out if arrows should be drawn */
+  showarrow = FALSE;
+  children = gtk_notebook_search_page (notebook, NULL, step, TRUE);
+  while (children && !showarrow)
+    {
+      page = children->data;
+      children = gtk_notebook_search_page (notebook, children,
+					   step, TRUE);
+      if (!GTK_WIDGET_MAPPED (page->tab_label))
+	showarrow = TRUE;
+    }
+
+  /* then draw content area frame */
+  if (paint_box_gap)
       gtk_paint_box_gap (widget->style, widget->window,
 			 GTK_STATE_NORMAL, GTK_SHADOW_OUT,
-			 area, widget, "notebook",
+                       area, widget,
+                       (showarrow && notebook->scrollable)
+                       ? "notebook_show_arrow"
+                       : "notebook",
 			 x, y, width, height,
 			 tab_pos, gap_x, gap_width);

Testcase attached.

-- 
Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list