Ticket #1216 (closed defect: community)

Opened 9 years ago

Last modified 8 years ago

The text of the unselected tab in the tabbed pane (GtkNotebook) shows almost black on black.

Reported by: audriusa@… Owned by: openmoko-devel
Priority: high Milestone:
Component: Theming - Gtk+ Version: 2007.2
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

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 ();


}

Change History

comment:1 Changed 9 years ago by roh

  • Owner changed from buglog@… to openmoko-devel

comment:2 Changed 8 years ago by john_lee

  • Status changed from new to closed
  • HasPatchForReview unset
  • Resolution set to community
Note: See TracTickets for help on using tickets.