[Bug 1216] New: The text of the unselected tab in the tabbed pane (GtkNotebook) shows almost black on black.

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Sun Feb 3 17:13:33 CET 2008


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1216

           Summary: The text of the unselected tab in the tabbed pane
                    (GtkNotebook) shows almost black on black.
           Product: OpenMoko
           Version: 2007.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Theming / Gtk+
        AssignedTo: buglog at lists.openmoko.org
        ReportedBy: audriusa at bluewin.ch
                CC: buglog at lists.openmoko.org


The background of the tab is basically black (with some shadowing) and the text
on the tab is also black. Only because of the shadowing the text is a little bit
visible, but even not enough to read it properly.

Tabbed panes are a useful, advanced GTK feature and are convenient on the mobile
device where the screen size makes multiple windows not the best choice. They
are used in the GPV project, maybe also in others.


#include <gtk/gtk.h>
int main( int   argc,
          char *argv[] )
{
// Create the tabbed pane:
    GtkWidget *window;

    gtk_init (&argc, &argv);

    /* Create a new window */
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);	
	
    GtkWidget *lTable = gtk_label_new ("Summary");
    GtkWidget *lMap = gtk_label_new ("Map");
    
    GtkWidget *cTable = gtk_label_new ("Summary content");
    GtkWidget *cMap = gtk_label_new ("Map content");
   
    GtkNotebook * tabs = GTK_NOTEBOOK(gtk_notebook_new());  
    gtk_notebook_set_tab_pos(tabs, GTK_POS_BOTTOM);
    gtk_notebook_append_page(tabs, cTable, lTable);
    gtk_notebook_append_page(tabs, cMap, lMap);  
    
    gtk_widget_show(window);	
    gtk_widget_show(lTable);
    gtk_widget_show(cTable);
    gtk_widget_show(lMap);
    gtk_widget_show(cMap);
    gtk_widget_show (GTK_WIDGET(tabs));    
    // Put the tabs in the main window 
    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET(tabs));    

    gtk_main ();    
    
}



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list