mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2025-01-31 05:31:07 +00:00
* more translateable strings
* fixed warnings about unused variables git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@293 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
c974ae628c
commit
46bdd92bb4
3 changed files with 210 additions and 223 deletions
|
@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
#include "../funchandlers.h"
|
||||
#include "../lists.h"
|
||||
#include "../misc.h"
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
/*--------------------------------
|
||||
Callback Functions
|
||||
|
@ -1352,7 +1353,7 @@ int DoResetTextureBox (ResetTextureRS* rs)
|
|||
|
||||
// ---- /hbox ----
|
||||
|
||||
frame = gtk_frame_new ("Reset Texture Names");
|
||||
frame = gtk_frame_new (_("Reset Texture Names"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1400,7 +1401,7 @@ int DoResetTextureBox (ResetTextureRS* rs)
|
|||
|
||||
// ---- /frame ----
|
||||
|
||||
frame = gtk_frame_new ("Reset Scales");
|
||||
frame = gtk_frame_new (_("Reset Scales"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1456,7 +1457,7 @@ int DoResetTextureBox (ResetTextureRS* rs)
|
|||
|
||||
// ---- /frame ----
|
||||
|
||||
frame = gtk_frame_new ("Reset Shift");
|
||||
frame = gtk_frame_new (_("Reset Shift"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1512,7 +1513,7 @@ int DoResetTextureBox (ResetTextureRS* rs)
|
|||
|
||||
// ---- /frame ----
|
||||
|
||||
frame = gtk_frame_new ("Reset Rotation");
|
||||
frame = gtk_frame_new (_("Reset Rotation"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1670,7 +1671,7 @@ int DoTrainThingBox (TrainThingRS* rs)
|
|||
|
||||
// ---- /hbox ----
|
||||
|
||||
frame = gtk_frame_new ("Radii");
|
||||
frame = gtk_frame_new (_("Radii"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1713,7 +1714,7 @@ int DoTrainThingBox (TrainThingRS* rs)
|
|||
|
||||
|
||||
|
||||
frame = gtk_frame_new ("Angles");
|
||||
frame = gtk_frame_new (_("Angles"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1755,7 +1756,7 @@ int DoTrainThingBox (TrainThingRS* rs)
|
|||
gtk_widget_show (angleEnd);
|
||||
|
||||
|
||||
frame = gtk_frame_new ("Height");
|
||||
frame = gtk_frame_new (_("Height"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
@ -1798,7 +1799,7 @@ int DoTrainThingBox (TrainThingRS* rs)
|
|||
|
||||
|
||||
|
||||
frame = gtk_frame_new ("Points");
|
||||
frame = gtk_frame_new (_("Points"));
|
||||
gtk_widget_show (frame);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "surfdlg_plugin.h"
|
||||
|
||||
|
@ -192,7 +193,6 @@ void clear_all_buttons_and_values()
|
|||
|
||||
void SetFlagButtons_Heretic2(texdef_to_face_t *texdef_face_list, bool b_isListEmpty)
|
||||
{
|
||||
int i;
|
||||
int contents = 0;
|
||||
int flags = 0;
|
||||
int value = 0;
|
||||
|
@ -958,10 +958,6 @@ on_surf_value_entry_insert_text (GtkEditable *editable,
|
|||
{
|
||||
int i, count=0;
|
||||
gchar *result;
|
||||
int entry_value;
|
||||
texdef_t *pt;
|
||||
brush_t *b;
|
||||
face_t *f;
|
||||
|
||||
// Limit input to digits, throwing out anything else
|
||||
// Modified from Gtk FAQ for text filtering of GtkEntry
|
||||
|
@ -998,7 +994,6 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
GtkWidget *frame2;
|
||||
GtkWidget *hbox4;
|
||||
GtkWidget *label4;
|
||||
GtkWidget *vbox4;
|
||||
GtkWidget *table3;
|
||||
GtkWidget *label5;
|
||||
|
||||
|
@ -1009,7 +1004,7 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
GtkWidget *label3;
|
||||
|
||||
|
||||
frame1 = gtk_frame_new ("Brush/Face Flags");
|
||||
frame1 = gtk_frame_new (_("Brush/Face Flags"));
|
||||
gtk_widget_show (frame1);
|
||||
gtk_container_add (GTK_CONTAINER (surfacedialog_widget), frame1);
|
||||
|
||||
|
@ -1025,73 +1020,73 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (table1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), table1, TRUE, TRUE, 0);
|
||||
|
||||
surface_lightbutton = gtk_toggle_button_new_with_mnemonic ("Light");
|
||||
surface_lightbutton = gtk_toggle_button_new_with_mnemonic (_("Light"));
|
||||
gtk_widget_show (surface_lightbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_lightbutton, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_slickbutton = gtk_toggle_button_new_with_mnemonic ("Slick");
|
||||
surface_slickbutton = gtk_toggle_button_new_with_mnemonic (_("Slick"));
|
||||
gtk_widget_show (surface_slickbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_slickbutton, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_skybutton = gtk_toggle_button_new_with_mnemonic ("Sky");
|
||||
surface_skybutton = gtk_toggle_button_new_with_mnemonic (_("Sky"));
|
||||
gtk_widget_show (surface_skybutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_skybutton, 2, 3, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_warpbutton = gtk_toggle_button_new_with_mnemonic ("Warp");
|
||||
surface_warpbutton = gtk_toggle_button_new_with_mnemonic (_("Warp"));
|
||||
gtk_widget_show (surface_warpbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_warpbutton, 3, 4, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_trans33button = gtk_toggle_button_new_with_mnemonic ("Trans33");
|
||||
surface_trans33button = gtk_toggle_button_new_with_mnemonic (_("Trans33"));
|
||||
gtk_widget_show (surface_trans33button);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_trans33button, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_trans66button = gtk_toggle_button_new_with_mnemonic ("Trans66");
|
||||
surface_trans66button = gtk_toggle_button_new_with_mnemonic (_("Trans66"));
|
||||
gtk_widget_show (surface_trans66button);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_trans66button, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_flowingbutton = gtk_toggle_button_new_with_mnemonic ("Flowing");
|
||||
surface_flowingbutton = gtk_toggle_button_new_with_mnemonic (_("Flowing"));
|
||||
gtk_widget_show (surface_flowingbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_flowingbutton, 2, 3, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_nodrawbutton = gtk_toggle_button_new_with_mnemonic ("NoDraw");
|
||||
surface_nodrawbutton = gtk_toggle_button_new_with_mnemonic (_("NoDraw"));
|
||||
gtk_widget_show (surface_nodrawbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_nodrawbutton, 3, 4, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_tallwallbutton = gtk_toggle_button_new_with_mnemonic ("TallWall");
|
||||
surface_tallwallbutton = gtk_toggle_button_new_with_mnemonic (_("TallWall"));
|
||||
gtk_widget_show (surface_tallwallbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_tallwallbutton, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_alphatexbutton = gtk_toggle_button_new_with_mnemonic ("AlphaTex");
|
||||
surface_alphatexbutton = gtk_toggle_button_new_with_mnemonic (_("AlphaTex"));
|
||||
gtk_widget_show (surface_alphatexbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_alphatexbutton, 1, 2, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_animspeedbutton = gtk_toggle_button_new_with_mnemonic ("AnimSpeed");
|
||||
surface_animspeedbutton = gtk_toggle_button_new_with_mnemonic (_("AnimSpeed"));
|
||||
gtk_widget_show (surface_animspeedbutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_animspeedbutton, 2, 3, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
surface_undulatebutton = gtk_toggle_button_new_with_mnemonic ("Undulate");
|
||||
surface_undulatebutton = gtk_toggle_button_new_with_mnemonic (_("Undulate"));
|
||||
gtk_widget_show (surface_undulatebutton);
|
||||
gtk_table_attach (GTK_TABLE (table1), surface_undulatebutton, 3, 4, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
|
@ -1107,23 +1102,23 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (hbox4);
|
||||
gtk_container_add (GTK_CONTAINER (frame2), hbox4);
|
||||
|
||||
surf_gravel_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, "Gravel");
|
||||
surf_gravel_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Gravel"));
|
||||
gtk_widget_show (surf_gravel_radiobutton);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), surf_gravel_radiobutton, TRUE, FALSE, 0);
|
||||
|
||||
surf_metal_radiobutton = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(surf_gravel_radiobutton), "Metal");
|
||||
surf_metal_radiobutton = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(surf_gravel_radiobutton), _("Metal"));
|
||||
gtk_widget_show (surf_metal_radiobutton);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), surf_metal_radiobutton, TRUE, FALSE, 0);
|
||||
|
||||
surf_stone_radiobutton = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(surf_metal_radiobutton), "Stone");
|
||||
surf_stone_radiobutton = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(surf_metal_radiobutton), _("Stone"));
|
||||
gtk_widget_show (surf_stone_radiobutton);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), surf_stone_radiobutton, TRUE, FALSE, 0);
|
||||
|
||||
surf_wood_radiobutton = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(surf_stone_radiobutton), "Wood");
|
||||
surf_wood_radiobutton = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(surf_stone_radiobutton), _("Wood"));
|
||||
gtk_widget_show (surf_wood_radiobutton);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), surf_wood_radiobutton, TRUE, FALSE, 0);
|
||||
|
||||
label4 = gtk_label_new ("Material");
|
||||
label4 = gtk_label_new (_("Material"));
|
||||
gtk_widget_show (label4);
|
||||
gtk_frame_set_label_widget (GTK_FRAME (frame2), label4);
|
||||
gtk_label_set_justify (GTK_LABEL (label4), GTK_JUSTIFY_LEFT);
|
||||
|
@ -1139,7 +1134,7 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_FILL), 0, 0);
|
||||
|
||||
label5 = gtk_label_new ("Value: ");
|
||||
label5 = gtk_label_new (_("Value: "));
|
||||
gtk_widget_show (label5);
|
||||
gtk_table_attach (GTK_TABLE (table3), label5, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (0),
|
||||
|
@ -1159,7 +1154,7 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_FILL), 0, 0);
|
||||
|
||||
label2 = gtk_label_new ("Surface Flags");
|
||||
label2 = gtk_label_new (_("Surface Flags"));
|
||||
gtk_widget_show (label2);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label2);
|
||||
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
|
||||
|
@ -1168,127 +1163,127 @@ GtkWidget* Create_Heretic2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (table2);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), table2);
|
||||
|
||||
content_solidbutton = gtk_toggle_button_new_with_mnemonic ("Solid");
|
||||
content_solidbutton = gtk_toggle_button_new_with_mnemonic (_("Solid"));
|
||||
gtk_widget_show (content_solidbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_solidbutton, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_windowbutton = gtk_toggle_button_new_with_mnemonic ("Window");
|
||||
content_windowbutton = gtk_toggle_button_new_with_mnemonic (_("Window"));
|
||||
gtk_widget_show (content_windowbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_windowbutton, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_illusbutton = gtk_toggle_button_new_with_mnemonic ("Illusion");
|
||||
content_illusbutton = gtk_toggle_button_new_with_mnemonic (_("Illusion"));
|
||||
gtk_widget_show (content_illusbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_illusbutton, 2, 3, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_lavabutton = gtk_toggle_button_new_with_mnemonic ("Lava");
|
||||
content_lavabutton = gtk_toggle_button_new_with_mnemonic (_("Lava"));
|
||||
gtk_widget_show (content_lavabutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_lavabutton, 3, 4, 0, 1,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_slimebutton = gtk_toggle_button_new_with_mnemonic ("Slime");
|
||||
content_slimebutton = gtk_toggle_button_new_with_mnemonic (_("Slime"));
|
||||
gtk_widget_show (content_slimebutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_slimebutton, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_waterbutton = gtk_toggle_button_new_with_mnemonic ("Water");
|
||||
content_waterbutton = gtk_toggle_button_new_with_mnemonic (_("Water"));
|
||||
gtk_widget_show (content_waterbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_waterbutton, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_mistbutton = gtk_toggle_button_new_with_mnemonic ("Mist");
|
||||
content_mistbutton = gtk_toggle_button_new_with_mnemonic (_("Mist"));
|
||||
gtk_widget_show (content_mistbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_mistbutton, 2, 3, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_areaportalbutton = gtk_toggle_button_new_with_mnemonic ("AreaPortal");
|
||||
content_areaportalbutton = gtk_toggle_button_new_with_mnemonic (_("AreaPortal"));
|
||||
gtk_widget_show (content_areaportalbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_areaportalbutton, 3, 4, 1, 2,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_playerclipbutton = gtk_toggle_button_new_with_mnemonic ("PlayerClip");
|
||||
content_playerclipbutton = gtk_toggle_button_new_with_mnemonic (_("PlayerClip"));
|
||||
gtk_widget_show (content_playerclipbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_playerclipbutton, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_monsterclipbutton = gtk_toggle_button_new_with_mnemonic ("MonsterClip");
|
||||
content_monsterclipbutton = gtk_toggle_button_new_with_mnemonic (_("MonsterClip"));
|
||||
gtk_widget_show (content_monsterclipbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_monsterclipbutton, 1, 2, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_current0button = gtk_toggle_button_new_with_mnemonic ("Current 0");
|
||||
content_current0button = gtk_toggle_button_new_with_mnemonic (_("Current 0"));
|
||||
gtk_widget_show (content_current0button);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_current0button, 2, 3, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_current90button = gtk_toggle_button_new_with_mnemonic ("Current 90");
|
||||
content_current90button = gtk_toggle_button_new_with_mnemonic (_("Current 90"));
|
||||
gtk_widget_show (content_current90button);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_current90button, 3, 4, 2, 3,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_current180button = gtk_toggle_button_new_with_mnemonic ("Current 180");
|
||||
content_current180button = gtk_toggle_button_new_with_mnemonic (_("Current 180"));
|
||||
gtk_widget_show (content_current180button);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_current180button, 0, 1, 3, 4,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_current270button = gtk_toggle_button_new_with_mnemonic ("Current 270");
|
||||
content_current270button = gtk_toggle_button_new_with_mnemonic (_("Current 270"));
|
||||
gtk_widget_show (content_current270button);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_current270button, 1, 2, 3, 4,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_currentUPbutton = gtk_toggle_button_new_with_mnemonic ("Current UP");
|
||||
content_currentUPbutton = gtk_toggle_button_new_with_mnemonic (_("Current UP"));
|
||||
gtk_widget_show (content_currentUPbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_currentUPbutton, 2, 3, 3, 4,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_currentDOWNbutton = gtk_toggle_button_new_with_mnemonic ("Current DOWN");
|
||||
content_currentDOWNbutton = gtk_toggle_button_new_with_mnemonic (_("Current DOWN"));
|
||||
gtk_widget_show (content_currentDOWNbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_currentDOWNbutton, 3, 4, 3, 4,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_originbutton = gtk_toggle_button_new_with_mnemonic ("Origin");
|
||||
content_originbutton = gtk_toggle_button_new_with_mnemonic (_("Origin"));
|
||||
gtk_widget_show (content_originbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_originbutton, 0, 1, 4, 5,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_detailbutton = gtk_toggle_button_new_with_mnemonic ("Detail");
|
||||
content_detailbutton = gtk_toggle_button_new_with_mnemonic (_("Detail"));
|
||||
gtk_widget_show (content_detailbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_detailbutton, 1, 2, 4, 5,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_ladderbutton = gtk_toggle_button_new_with_mnemonic ("Ladder");
|
||||
content_ladderbutton = gtk_toggle_button_new_with_mnemonic (_("Ladder"));
|
||||
gtk_widget_show (content_ladderbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_ladderbutton, 2, 3, 4, 5,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
content_camnoblockbutton = gtk_toggle_button_new_with_mnemonic ("Cam No Block");
|
||||
content_camnoblockbutton = gtk_toggle_button_new_with_mnemonic (_("Cam No Block"));
|
||||
gtk_widget_show (content_camnoblockbutton);
|
||||
gtk_table_attach (GTK_TABLE (table2), content_camnoblockbutton, 3, 4, 4, 5,
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
|
||||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
|
||||
label3 = gtk_label_new ("Content Flags");
|
||||
label3 = gtk_label_new (_("Content Flags"));
|
||||
gtk_widget_show (label3);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3);
|
||||
gtk_label_set_justify (GTK_LABEL (label3), GTK_JUSTIFY_LEFT);
|
||||
|
|
|
@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "surfdlg_plugin.h"
|
||||
|
||||
|
@ -79,13 +80,10 @@ inline void set_inconsistent(GtkWidget *toggle_button)
|
|||
|
||||
inline void clear_inconsistent(GtkWidget *toggle_button)
|
||||
{
|
||||
GtkWidget *button_label;
|
||||
|
||||
if ( gtk_toggle_button_get_inconsistent(GTK_TOGGLE_BUTTON (toggle_button)) )
|
||||
{
|
||||
gtk_toggle_button_set_inconsistent(GTK_TOGGLE_BUTTON (toggle_button), FALSE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void clear_all_inconsistent(void)
|
||||
|
@ -162,7 +160,6 @@ void clear_all_buttons_and_values()
|
|||
|
||||
void SetFlagButtons_Quake2(texdef_to_face_t *texdef_face_list, bool b_isListEmpty)
|
||||
{
|
||||
int i;
|
||||
int contents = 0;
|
||||
int flags = 0;
|
||||
int value = 0;
|
||||
|
@ -729,10 +726,6 @@ on_value_entry_insert_text (GtkEditable *editable,
|
|||
{
|
||||
int i, count=0;
|
||||
gchar *result;
|
||||
int entry_value;
|
||||
texdef_t *pt;
|
||||
brush_t *b;
|
||||
face_t *f;
|
||||
|
||||
// Limit input to digits, throwing out anything else
|
||||
// Modified from Gtk FAQ for text filtering of GtkEntry
|
||||
|
@ -790,10 +783,8 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
GtkWidget *label5;
|
||||
GtkWidget *table3;
|
||||
GtkWidget *label6;
|
||||
GtkWidget *table1;
|
||||
|
||||
|
||||
frame1 = gtk_frame_new ("Flags");
|
||||
frame1 = gtk_frame_new (_("Flags"));
|
||||
gtk_widget_show (frame1);
|
||||
gtk_container_add (GTK_CONTAINER (surfacedialog_widget), frame1);
|
||||
|
||||
|
@ -815,7 +806,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (table4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), table4, TRUE, TRUE, 0);
|
||||
|
||||
surface_lightbutton = gtk_toggle_button_new_with_label ("Light");
|
||||
surface_lightbutton = gtk_toggle_button_new_with_label (_("Light"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_lightbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_lightbutton_toggled),
|
||||
NULL);
|
||||
|
@ -825,7 +816,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_lightbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_slickbutton = gtk_toggle_button_new_with_label ("Slick");
|
||||
surface_slickbutton = gtk_toggle_button_new_with_label (_("Slick"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_slickbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_slickbutton_toggled),
|
||||
NULL);
|
||||
|
@ -835,7 +826,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_slickbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_skybutton = gtk_toggle_button_new_with_label ("Sky");
|
||||
surface_skybutton = gtk_toggle_button_new_with_label (_("Sky"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_skybutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_skybutton_toggled),
|
||||
NULL);
|
||||
|
@ -845,7 +836,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_skybutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_warpbutton = gtk_toggle_button_new_with_label ("Warp");
|
||||
surface_warpbutton = gtk_toggle_button_new_with_label (_("Warp"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_warpbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_warpbutton_toggled),
|
||||
NULL);
|
||||
|
@ -855,7 +846,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_warpbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_trans33button = gtk_toggle_button_new_with_label ("Trans 33");
|
||||
surface_trans33button = gtk_toggle_button_new_with_label (_("Trans 33"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_trans33button), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_trans33button_toggled),
|
||||
NULL);
|
||||
|
@ -865,7 +856,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_trans33button), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_trans66button = gtk_toggle_button_new_with_label ("Trans 66");
|
||||
surface_trans66button = gtk_toggle_button_new_with_label (_("Trans 66"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_trans66button), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_trans66button_toggled),
|
||||
NULL);
|
||||
|
@ -875,7 +866,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_trans66button), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_flowingbutton = gtk_toggle_button_new_with_label ("Flowing");
|
||||
surface_flowingbutton = gtk_toggle_button_new_with_label (_("Flowing"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_flowingbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_flowingbutton_toggled),
|
||||
NULL);
|
||||
|
@ -885,7 +876,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_flowingbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_nodrawbutton = gtk_toggle_button_new_with_label ("NoDraw");
|
||||
surface_nodrawbutton = gtk_toggle_button_new_with_label (_("NoDraw"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_nodrawbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_nodrawbutton_toggled),
|
||||
NULL);
|
||||
|
@ -895,7 +886,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_nodrawbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_hintbutton = gtk_toggle_button_new_with_label ("Hint");
|
||||
surface_hintbutton = gtk_toggle_button_new_with_label (_("Hint"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_hintbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_hintbutton_toggled),
|
||||
NULL);
|
||||
|
@ -905,7 +896,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (surface_hintbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
surface_skipbutton = gtk_toggle_button_new_with_label ("Skip");
|
||||
surface_skipbutton = gtk_toggle_button_new_with_label (_("Skip"));
|
||||
gtk_signal_connect (GTK_OBJECT (surface_skipbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_surface_skipbutton_toggled),
|
||||
NULL);
|
||||
|
@ -932,7 +923,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (vbox4);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), vbox4, TRUE, TRUE, 0);
|
||||
|
||||
value_label = gtk_label_new (" Value: ");
|
||||
value_label = gtk_label_new (_("Value: "));
|
||||
gtk_widget_show (value_label);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), value_label, FALSE, FALSE, 0);
|
||||
|
||||
|
@ -951,7 +942,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (vbox3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), vbox3, TRUE, TRUE, 0);
|
||||
|
||||
label5 = gtk_label_new ("Surface Flags");
|
||||
label5 = gtk_label_new (_("Surface Flags"));
|
||||
gtk_widget_show (label5);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label5);
|
||||
|
||||
|
@ -959,7 +950,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
gtk_widget_show (table3);
|
||||
gtk_container_add (GTK_CONTAINER (notebook1), table3);
|
||||
|
||||
content_solidbutton = gtk_toggle_button_new_with_label ("Solid");
|
||||
content_solidbutton = gtk_toggle_button_new_with_label (_("Solid"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_solidbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_solidbutton_toggled),
|
||||
NULL);
|
||||
|
@ -969,7 +960,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_solidbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_windowbutton = gtk_toggle_button_new_with_label ("Window");
|
||||
content_windowbutton = gtk_toggle_button_new_with_label (_("Window"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_windowbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_windowbutton_toggled),
|
||||
NULL);
|
||||
|
@ -979,7 +970,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_windowbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_auxbutton = gtk_toggle_button_new_with_label ("Aux");
|
||||
content_auxbutton = gtk_toggle_button_new_with_label (_("Aux"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_auxbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_auxbutton_toggled),
|
||||
NULL);
|
||||
|
@ -989,7 +980,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_auxbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_lavabutton = gtk_toggle_button_new_with_label ("Lava");
|
||||
content_lavabutton = gtk_toggle_button_new_with_label (_("Lava"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_lavabutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_lavabutton_toggled),
|
||||
NULL);
|
||||
|
@ -999,7 +990,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_lavabutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_slimebutton = gtk_toggle_button_new_with_label ("Slime");
|
||||
content_slimebutton = gtk_toggle_button_new_with_label (_("Slime"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_slimebutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_slimebutton_toggled),
|
||||
NULL);
|
||||
|
@ -1009,7 +1000,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_slimebutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_waterbutton = gtk_toggle_button_new_with_label ("Water");
|
||||
content_waterbutton = gtk_toggle_button_new_with_label (_("Water"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_waterbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_waterbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1019,7 +1010,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_waterbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_mistbutton = gtk_toggle_button_new_with_label ("Mist");
|
||||
content_mistbutton = gtk_toggle_button_new_with_label (_("Mist"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_mistbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_mistbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1029,7 +1020,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_mistbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_areaportalbutton = gtk_toggle_button_new_with_label ("AreaPortal");
|
||||
content_areaportalbutton = gtk_toggle_button_new_with_label (_("AreaPortal"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_areaportalbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_areaportalbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1039,7 +1030,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_areaportalbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_playerclipbutton = gtk_toggle_button_new_with_label ("PlayerClip");
|
||||
content_playerclipbutton = gtk_toggle_button_new_with_label (_("PlayerClip"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_playerclipbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_playerclipbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1049,7 +1040,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_playerclipbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_monsterclipbutton = gtk_toggle_button_new_with_label ("MonsterClip");
|
||||
content_monsterclipbutton = gtk_toggle_button_new_with_label (_("MonsterClip"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_monsterclipbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_monsterclipbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1059,7 +1050,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_monsterclipbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_current0button = gtk_toggle_button_new_with_label ("Current 0");
|
||||
content_current0button = gtk_toggle_button_new_with_label (_("Current 0"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_current0button), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_current0button_toggled),
|
||||
NULL);
|
||||
|
@ -1069,7 +1060,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_current0button), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_current90button = gtk_toggle_button_new_with_label ("Current 90");
|
||||
content_current90button = gtk_toggle_button_new_with_label (_("Current 90"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_current90button), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_current90button_toggled),
|
||||
NULL);
|
||||
|
@ -1079,7 +1070,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_current90button), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_current180button = gtk_toggle_button_new_with_label ("Current 180");
|
||||
content_current180button = gtk_toggle_button_new_with_label (_("Current 180"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_current180button), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_current180button_toggled),
|
||||
NULL);
|
||||
|
@ -1089,7 +1080,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_current180button), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_current270button = gtk_toggle_button_new_with_label ("Current 270");
|
||||
content_current270button = gtk_toggle_button_new_with_label (_("Current 270"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_current270button), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_current270button_toggled),
|
||||
NULL);
|
||||
|
@ -1099,7 +1090,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_current270button), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_currentUPbutton = gtk_toggle_button_new_with_label ("Current UP");
|
||||
content_currentUPbutton = gtk_toggle_button_new_with_label (_("Current UP"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_currentUPbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_currentUPbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1109,7 +1100,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_currentUPbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_currentDOWNbutton = gtk_toggle_button_new_with_label ("Current DOWN");
|
||||
content_currentDOWNbutton = gtk_toggle_button_new_with_label (_("Current DOWN"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_currentDOWNbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_currentDOWNbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1119,7 +1110,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_currentDOWNbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_originbutton = gtk_toggle_button_new_with_label ("Origin");
|
||||
content_originbutton = gtk_toggle_button_new_with_label (_("Origin"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_originbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_originbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1129,7 +1120,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_originbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_detailbutton = gtk_toggle_button_new_with_label ("Detail");
|
||||
content_detailbutton = gtk_toggle_button_new_with_label (_("Detail"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_detailbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_detailbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1139,7 +1130,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_detailbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_translucentbutton = gtk_toggle_button_new_with_label ("Translucent");
|
||||
content_translucentbutton = gtk_toggle_button_new_with_label (_("Translucent"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_translucentbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_translucentbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1149,7 +1140,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_translucentbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
content_ladderbutton = gtk_toggle_button_new_with_label ("Ladder");
|
||||
content_ladderbutton = gtk_toggle_button_new_with_label (_("Ladder"));
|
||||
gtk_signal_connect (GTK_OBJECT (content_ladderbutton), "toggled",
|
||||
GTK_SIGNAL_FUNC (on_content_ladderbutton_toggled),
|
||||
NULL);
|
||||
|
@ -1159,7 +1150,7 @@ GtkWidget* Create_Quake2FlagsDialog (GtkWidget* surfacedialog_widget)
|
|||
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (content_ladderbutton), QUAKE2_FLAG_BUTTON_BORDER);
|
||||
|
||||
label6 = gtk_label_new ("Content Flags");
|
||||
label6 = gtk_label_new (_("Content Flags"));
|
||||
gtk_widget_show (label6);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label6);
|
||||
|
||||
|
|
Loading…
Reference in a new issue