Fix problem with menu titles being clipped (#75948)
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu titles being clipped (#75948)
This commit is contained in:

committed by
Søren Sandmann Pedersen

parent
abda40ede4
commit
3c52eba0b5
@ -1,3 +1,8 @@
|
||||
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
|
||||
titles being clipped (#75948)
|
||||
|
||||
2002-04-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
|
||||
titles being clipped (#75948)
|
||||
|
||||
2002-04-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
|
||||
titles being clipped (#75948)
|
||||
|
||||
2002-04-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
|
||||
titles being clipped (#75948)
|
||||
|
||||
2002-04-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
|
||||
titles being clipped (#75948)
|
||||
|
||||
2002-04-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
|
||||
titles being clipped (#75948)
|
||||
|
||||
2002-04-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
|
||||
|
@ -614,9 +614,16 @@ gtk_menu_item_paint (GtkWidget *widget,
|
||||
|
||||
if (menu_item->submenu && menu_item->show_submenu_indicator)
|
||||
{
|
||||
GtkRequisition child_requisition;
|
||||
gint arrow_x, arrow_y;
|
||||
gint arrow_size = height - 2 * widget->style->ythickness;
|
||||
gint arrow_extent = arrow_size / 2;
|
||||
gint arrow_size;
|
||||
gint arrow_extent;
|
||||
|
||||
gtk_widget_get_child_requisition (GTK_BIN (menu_item)->child,
|
||||
&child_requisition);
|
||||
|
||||
arrow_size = child_requisition.height - 2 * widget->style->ythickness;
|
||||
arrow_extent = arrow_size * 0.6;
|
||||
|
||||
shadow_type = GTK_SHADOW_OUT;
|
||||
if (state_type == GTK_STATE_PRELIGHT)
|
||||
|
@ -2487,19 +2487,19 @@ void create_labels (void)
|
||||
frame = gtk_frame_new ("Internationalized Label");
|
||||
label = gtk_label_new (NULL);
|
||||
gtk_label_set_markup (GTK_LABEL (label),
|
||||
"French (Français) Bonjour, Salut\n"
|
||||
"Korean (한글) 안녕하세요, 안녕하십니까\n"
|
||||
"Russian (Русский) Здравствуйте!\n"
|
||||
"Chinese (Simplified) <span lang=\"zh-cn\">元气 开发</span>\n"
|
||||
"Chinese (Traditional) <span lang=\"zh-tw\">元氣 開發</span>\n"
|
||||
"Japanese <span lang=\"ja\">元気 開発</span>");
|
||||
"French (Fran<EFBFBD>Á<EFBFBD>ais) Bonjour, Salut\n"
|
||||
"Korean (<EFBFBD>한<EFBFBD>ꁸ<EFBFBD>) <20>안<EFBFBD>녕<EFBFBD>하<EFBFBD>섁<EFBFBD><EC8481>요, <20>안<EFBFBD>녕<EFBFBD>하<EFBFBD>싁<EFBFBD><EC8B81>니<EFBFBD>ꁹ<EFBFBD>\n"
|
||||
"Russian (<EFBFBD>Ё<EFBFBD><EFBFBD>у<EFBFBD>с<EFBFBD>с<EFBFBD>Ё<EFBFBD><EFBFBD>Ё<EFBFBD><EFBFBD>Ё<EFBFBD>) <20>З<EFBFBD>Ё<EFBFBD><D081>р<EFBFBD>Ё<EFBFBD><D081>Ё<EFBFBD><D081>с<EFBFBD>т<EFBFBD>Ё<EFBFBD><D081>у<EFBFBD>Ё<EFBFBD><D081>т<EFBFBD>Ё<EFBFBD>!\n"
|
||||
"Chinese (Simplified) <span lang=\"zh-cn\"><EFBFBD>元<EFBFBD>恰<EFBFBD> <09>偼<EFBFBD><E581BC>发</span>\n"
|
||||
"Chinese (Traditional) <span lang=\"zh-tw\"><EFBFBD>元<EFBFBD>恰<EFBFBD><EFBFBD> <09>開<EFBFBD>癁<EFBFBD></span>\n"
|
||||
"Japanese <span lang=\"ja\"><EFBFBD>元<EFBFBD>恰<EFBFBD> <09>開<EFBFBD>癁<EFBFBD></span>");
|
||||
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
|
||||
gtk_container_add (GTK_CONTAINER (frame), label);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
|
||||
|
||||
frame = gtk_frame_new ("Bidirection Label");
|
||||
label = gtk_label_new ("Arabic السلام عليكم\n"
|
||||
"Hebrew שלום");
|
||||
label = gtk_label_new ("Arabic <EFBFBD><EFBFBD><EFBFBD>ل<EFBFBD><EFBFBD><EFBFBD>ل<EFBFBD><EFBFBD><EFBFBD>م <20><EFBFBD><D881>ل<EFBFBD>ي<EFBFBD>ك<EFBFBD>م\n"
|
||||
"Hebrew <EFBFBD>ׁ<EFBFBD><EFBFBD>ל<EFBFBD>ו<EFBFBD>ם");
|
||||
gtk_widget_set_direction (label, GTK_TEXT_DIR_RTL);
|
||||
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
|
||||
gtk_container_add (GTK_CONTAINER (frame), label);
|
||||
@ -2535,7 +2535,7 @@ void create_labels (void)
|
||||
|
||||
frame = gtk_frame_new ("Underlined label");
|
||||
label = gtk_label_new ("This label is underlined!\n"
|
||||
"This one is underlined (こんにちは) in quite a funky fashion");
|
||||
"This one is underlined (<EFBFBD>こ<EFBFBD>ん<EFBFBD>ぁ<EFBFBD><EFBFBD>ぁ<EFBFBD><EFBFBD>ぁ<EFBFBD>) in quite a funky fashion");
|
||||
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
|
||||
gtk_label_set_pattern (GTK_LABEL (label), "_________________________ _ _________ _ _____ _ __ __ ___ ____ _____");
|
||||
gtk_container_add (GTK_CONTAINER (frame), label);
|
||||
@ -3489,7 +3489,7 @@ static GtkItemFactoryEntry menu_items[] =
|
||||
{ "/File/_Save", NULL, gtk_ifactory_cb, 0, "<StockItem>", GTK_STOCK_SAVE },
|
||||
{ "/File/Save _As...", "<control>A", gtk_ifactory_cb, 0, "<StockItem>", GTK_STOCK_SAVE },
|
||||
{ "/File/_Dump \"_Accels\"", NULL, dump_accels, 0 },
|
||||
{ "/File/\\/Test__Escaping/And\\/\n\tWei\\\\rdly",
|
||||
{ "/File/\\/Test__Escaping/And\\/\n\tWei\\\\rdly/and more",
|
||||
NULL, gtk_ifactory_cb, 0 },
|
||||
{ "/File/sep1", NULL, gtk_ifactory_cb, 0, "<Separator>" },
|
||||
{ "/File/_Quit", NULL, gtk_ifactory_cb, 0, "<StockItem>", GTK_STOCK_QUIT },
|
||||
@ -3648,9 +3648,9 @@ create_key_lookup (void)
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), button, FALSE, FALSE, 0);
|
||||
button = gtk_button_new_with_mnemonic ("Button 2 (_A)");
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), button, FALSE, FALSE, 0);
|
||||
button = gtk_button_new_with_mnemonic ("Button 3 (_ф)");
|
||||
button = gtk_button_new_with_mnemonic ("Button 3 (_<EFBFBD>ф)");
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), button, FALSE, FALSE, 0);
|
||||
button = gtk_button_new_with_mnemonic ("Button 4 (_Ф)");
|
||||
button = gtk_button_new_with_mnemonic ("Button 4 (_<EFBFBD>Ё<EFBFBD>)");
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), button, FALSE, FALSE, 0);
|
||||
button = gtk_button_new_with_mnemonic ("Button 6 (_b)");
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), button, FALSE, FALSE, 0);
|
||||
@ -4073,7 +4073,7 @@ create_entry (void)
|
||||
gtk_box_pack_start (GTK_BOX (box2), hbox, TRUE, TRUE, 0);
|
||||
|
||||
entry = gtk_entry_new ();
|
||||
gtk_entry_set_text (GTK_ENTRY (entry), "hello world السلام عليكم");
|
||||
gtk_entry_set_text (GTK_ENTRY (entry), "hello world <EFBFBD><EFBFBD><EFBFBD>ل<EFBFBD><EFBFBD><EFBFBD>ل<EFBFBD><EFBFBD><EFBFBD>م <20><EFBFBD><D881>ل<EFBFBD>ي<EFBFBD>ك<EFBFBD>م");
|
||||
gtk_editable_select_region (GTK_EDITABLE (entry), 0, 5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user