diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-03-21 18:39:16 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-03-21 18:39:16 +0000 |
commit | fa7cc9c20f69cc5f254ea4e0b4675fc5427466a0 (patch) | |
tree | 0a19e634ec8c9c0e2cc2d8eb381344c7224c2206 /ui/gtk/stock_icons.c | |
parent | 7e706abafb0689915b5556ba2e996d02f8fb5b98 (diff) |
Bill pointed out that gtk_window_get_size() + gtk_window_resize()
doesn't work well in some cases. Switch to window_get_geometry() +
gtk_window_set_default_size(). (We use gtk_widget_get_preferred_size()
elsewhere but fetches what appeares the minimum width of the top-level
window on my machine instead of the actual width.)
Use a macro to define the initial conversation and endpoint dialog
heigth and increase its value. Use best-guess dialog metrics and UTF8
entities in a few more spots.
Add a comment about alignment not working quite right in Gtk3.
svn path=/trunk/; revision=48459
Diffstat (limited to 'ui/gtk/stock_icons.c')
-rw-r--r-- | ui/gtk/stock_icons.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gtk/stock_icons.c b/ui/gtk/stock_icons.c index 7a95775875..ae616026d2 100644 --- a/ui/gtk/stock_icons.c +++ b/ui/gtk/stock_icons.c @@ -29,6 +29,7 @@ #include "ui/gtk/stock_icons.h" #include "ui/gtk/toolbar_icons.h" +#include "ui/utf8_entities.h" /* these icons are derived from the original stock icons */ #include "../../image/toolbar/capture_interfaces_24.xpm" @@ -108,8 +109,8 @@ void stock_icons_init(void) { #ifdef HAVE_GEOIP { (char *)WIRESHARK_STOCK_MAP, (char *)"Map", NO_MOD, 0, NULL }, #endif - { (char *)WIRESHARK_STOCK_GRAPH_A_B, (char *)"Graph A->B", NO_MOD, 0, NULL }, - { (char *)WIRESHARK_STOCK_GRAPH_B_A, (char *)"Graph B->A", NO_MOD, 0, NULL }, + { (char *)WIRESHARK_STOCK_GRAPH_A_B, (char *)"Graph A" UTF8_RIGHTWARDS_ARROW "B", NO_MOD, 0, NULL }, + { (char *)WIRESHARK_STOCK_GRAPH_B_A, (char *)"Graph B" UTF8_RIGHTWARDS_ARROW "A", NO_MOD, 0, NULL }, { (char *)WIRESHARK_STOCK_FOLLOW_STREAM, (char *)"Follow Stream", NO_MOD, 0, NULL }, { (char *)WIRESHARK_STOCK_DISPLAY_FILTER, (char *)"Display _Filter", NO_MOD, 0, NULL }, { (char *)WIRESHARK_STOCK_DISPLAY_FILTER_ENTRY, (char *)"F_ilter:", NO_MOD, 0, NULL }, |