[Freeciv-Dev] (PR#12130) Make lists use a smaller font.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#12130) Make lists use a smaller font. |
From: |
"Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx> |
Date: |
Sat, 5 Feb 2005 09:52:12 -0800 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12130 >
It saves screen realestate.
Index: client/gui-gtk-2.0/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/citydlg.c,v
retrieving revision 1.114
diff -u -r1.114 citydlg.c
--- client/gui-gtk-2.0/citydlg.c 4 Feb 2005 01:33:27 -0000 1.114
+++ client/gui-gtk-2.0/citydlg.c 5 Feb 2005 17:50:49 -0000
@@ -771,6 +771,7 @@
view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
g_object_unref(store);
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(view), FALSE);
+ gtk_widget_set_name(view, "small font");
pdialog->overview.improvement_list = view;
gtk_tooltips_set_tip(pdialog->tips,
Index: client/gui-gtk-2.0/cityrep.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/cityrep.c,v
retrieving revision 1.67
diff -u -r1.67 cityrep.c
--- client/gui-gtk-2.0/cityrep.c 30 Nov 2004 06:54:06 -0000 1.67
+++ client/gui-gtk-2.0/cityrep.c 5 Feb 2005 17:50:50 -0000
@@ -819,6 +819,7 @@
city_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(city_model));
g_object_unref(city_model);
+ gtk_widget_set_name(city_view, "small font");
g_signal_connect(city_view, "row_activated",
G_CALLBACK(city_activated_callback), NULL);
city_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(city_view));
Index: client/gui-gtk-2.0/plrdlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/plrdlg.c,v
retrieving revision 1.50
diff -u -r1.50 plrdlg.c
--- client/gui-gtk-2.0/plrdlg.c 5 Feb 2005 06:52:59 -0000 1.50
+++ client/gui-gtk-2.0/plrdlg.c 5 Feb 2005 17:50:50 -0000
@@ -297,6 +297,7 @@
players_list = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
g_object_unref(store);
+ gtk_widget_set_name(players_list, "small font");
players_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(players_list));
g_signal_connect(players_selection, "changed",
Index: client/gui-gtk-2.0/repodlgs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/repodlgs.c,v
retrieving revision 1.77
diff -u -r1.77 repodlgs.c
--- client/gui-gtk-2.0/repodlgs.c 3 Feb 2005 13:21:55 -0000 1.77
+++ client/gui-gtk-2.0/repodlgs.c 5 Feb 2005 17:50:50 -0000
@@ -247,6 +247,7 @@
science_model[i] = gtk_list_store_new(1, G_TYPE_STRING);
view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(science_model[i]));
gtk_box_pack_start(GTK_BOX(hbox), view, TRUE, TRUE, 0);
+ gtk_widget_set_name(view, "small font");
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view));
g_object_unref(science_model[i]);
gtk_tree_view_columns_autosize(GTK_TREE_VIEW(view));
@@ -661,6 +662,7 @@
view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(economy_store));
g_object_unref(economy_store);
+ gtk_widget_set_name(view, "small font");
gtk_tree_view_columns_autosize(GTK_TREE_VIEW(view));
economy_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view));
g_signal_connect(economy_selection, "changed",
@@ -964,6 +966,7 @@
view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(activeunits_store));
g_object_unref(activeunits_store);
+ gtk_widget_set_name(view, "small font");
gtk_tree_view_columns_autosize(GTK_TREE_VIEW(view));
activeunits_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view));
g_signal_connect(activeunits_selection, "changed",
@@ -1301,6 +1304,7 @@
scores_store = gtk_list_store_newv(ARRAY_SIZE(model_types), model_types);
scores_list = gtk_tree_view_new_with_model(GTK_TREE_MODEL(scores_store));
g_object_unref(scores_store);
+ gtk_widget_set_name(scores_list, "small font");
for (i = 0; i < NUM_SCORE_COLS; i++) {
GtkCellRenderer *renderer;
Index: client/gui-gtk-2.0/wldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/wldlg.c,v
retrieving revision 1.40
diff -u -r1.40 wldlg.c
--- client/gui-gtk-2.0/wldlg.c 2 Feb 2005 01:26:50 -0000 1.40
+++ client/gui-gtk-2.0/wldlg.c 5 Feb 2005 17:50:53 -0000
@@ -1090,6 +1090,7 @@
src_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(src_store));
g_object_unref(src_store);
gtk_size_group_add_widget(group, src_view);
+ gtk_widget_set_name(src_view, "small font");
populate_view(GTK_TREE_VIEW(src_view), &ptr->pcity, &ptr->src_col);
gtk_container_add(GTK_CONTAINER(sw), src_view);
@@ -1170,6 +1171,7 @@
dst_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dst_store));
g_object_unref(dst_store);
gtk_size_group_add_widget(group, dst_view);
+ gtk_widget_set_name(dst_view, "small font");
populate_view(GTK_TREE_VIEW(dst_view), &ptr->pcity, &ptr->dst_col);
gtk_container_add(GTK_CONTAINER(sw), dst_view);
Index: data/freeciv.rc-2.0
===================================================================
RCS file: /home/freeciv/CVS/freeciv/data/freeciv.rc-2.0,v
retrieving revision 1.22
diff -u -r1.22 freeciv.rc-2.0
--- data/freeciv.rc-2.0 29 Dec 2004 17:34:19 -0000 1.22
+++ data/freeciv.rc-2.0 5 Feb 2005 17:50:54 -0000
@@ -58,6 +58,11 @@
fg[PRELIGHT] = "red"
}
+style "small_font"
+{
+ font_name = "Sans 9"
+}
+
style "comment_label"
{
font_name = "Sans Italic 9"
@@ -86,6 +91,7 @@
widget "Freeciv*.help text" style "help_text"
widget "Freeciv*.chatline" style "chatline"
widget "Freeciv*.beta label" style "beta_label"
+widget "Freeciv*.small font" style "small_font"
widget "Freeciv*.comment label" style "comment_label"
widget "Freeciv*.city names" style "city_names_font"
widget "Freeciv*.city productions" style "city_productions_font"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#12130) Make lists use a smaller font.,
Vasco Alexandre da Silva Costa <=
|
|