[Freeciv-Dev] (PR#13258) put the tech graphics in the helpdialog
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13258 >
We have graphics for techs in the tileset. However no such graphics
exist and no code draws them.
This patch adds code to draw them in the helpdlg for gui-gtk-2.0.
-jason
Index: client/gui-gtk-2.0/helpdlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/helpdlg.c,v
retrieving revision 1.51
diff -u -r1.51 helpdlg.c
--- client/gui-gtk-2.0/helpdlg.c 22 May 2005 18:12:53 -0000 1.51
+++ client/gui-gtk-2.0/helpdlg.c 13 Jun 2005 18:18:54 -0000
@@ -903,6 +903,15 @@
len = strlen(buf);
my_chomp(buf, len);
+ if (get_tech_sprite(tileset, i)) {
+ GdkPixbuf *pixbuf = sprite_get_pixbuf(get_tech_sprite(tileset, i));
+
+ w = gtk_image_new_from_pixbuf(pixbuf);
+ gtk_widget_set_name(w, "help tech image");
+ gtk_box_pack_start(GTK_BOX(help_vbox), w, FALSE, FALSE, 0);
+ gtk_widget_show(w);
+ }
+
w = gtk_text_view_new();
gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(w), FALSE);
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(w), GTK_WRAP_WORD);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#13258) put the tech graphics in the helpdialog,
Jason Short <=
|
|