Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2005:
[Freeciv-Dev] (PR#13547) Flags in the diplomatic dialogs
Home

[Freeciv-Dev] (PR#13547) Flags in the diplomatic dialogs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13547) Flags in the diplomatic dialogs
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 26 Jul 2005 10:27:32 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13547 >

This patch adds flags to the diplomatic dialogs. This was requested many
times on the forum.
--
mateusz
Index: client/gui-gtk-2.0/diplodlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/diplodlg.c,v
retrieving revision 1.31
diff -u -r1.31 diplodlg.c
--- client/gui-gtk-2.0/diplodlg.c       16 Jul 2005 09:04:53 -0000      1.31
+++ client/gui-gtk-2.0/diplodlg.c       26 Jul 2005 17:21:32 -0000
@@ -512,6 +512,13 @@
 
   hbox = gtk_hbox_new(FALSE, 12);
   gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
+  
+  /* our flag */
+  image =
+      gtk_image_new_from_pixbuf(sprite_get_pixbuf
+                               (get_nation_flag_sprite
+                                (tileset, plr0->nation)));
+  gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);    
 
   label = gtk_label_new(NULL);
   gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
@@ -569,6 +576,14 @@
   hbox = gtk_hbox_new(FALSE, 12);
   gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
 
+  /* Their flag */
+  image =
+      gtk_image_new_from_pixbuf(sprite_get_pixbuf
+                               (get_nation_flag_sprite
+                                (tileset, plr1->nation)));
+  gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);    
+
+
   label = gtk_label_new(NULL);
   gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
   my_snprintf(buf, sizeof(buf),

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13547) Flags in the diplomatic dialogs, Mateusz Stefek <=