comparison src/gtkcombobox.c @ 13382:7ab959eb857e

[gaim-migrate @ 15755] A patch sent to gaim-i18n from Bj??rn Voigt: 'I agree with Danilo that we do not need the "property description" i18n strings in the imported GTK+ files. My attached patch changes the _() markers to P_() markers in gtkcellview.c and gtkcombobox.c. The file already had P_() markers. The files gtkcelllayout.c and gtkcellviewmenuitem.c do not have i18n strings.' committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 03 Mar 2006 00:41:38 +0000
parents 1ee0a397157f
children
comparison
equal deleted inserted replaced
13381:d1b29fb3b6d0 13382:7ab959eb857e
50 #include <gobject/gvaluecollector.h> 50 #include <gobject/gvaluecollector.h>
51 51
52 #include <string.h> 52 #include <string.h>
53 #include <stdarg.h> 53 #include <stdarg.h>
54 54
55 #ifdef ENABLE_NLS 55 #define P_(x) (x)
56 # include <libintl.h>
57 # define _(x) gettext(x)
58 # ifdef gettext_noop
59 # define N_(String) gettext_noop (String)
60 # else
61 # define N_(String) (String)
62 # endif
63 #else
64 # define N_(String) (String)
65 # define _(x) (x)
66 #endif
67 56
68 /* WELCOME, to THE house of evil code */ 57 /* WELCOME, to THE house of evil code */
69 58
70 typedef struct _ComboCellInfo ComboCellInfo; 59 typedef struct _ComboCellInfo ComboCellInfo;
71 struct _ComboCellInfo 60 struct _ComboCellInfo
485 474
486 /* properties */ 475 /* properties */
487 g_object_class_install_property (object_class, 476 g_object_class_install_property (object_class,
488 PROP_MODEL, 477 PROP_MODEL,
489 g_param_spec_object ("model", 478 g_param_spec_object ("model",
490 _("ComboBox model"), 479 P_("ComboBox model"),
491 _("The model for the combo box"), 480 P_("The model for the combo box"),
492 GTK_TYPE_TREE_MODEL, 481 GTK_TYPE_TREE_MODEL,
493 G_PARAM_READWRITE)); 482 G_PARAM_READWRITE));
494 483
495 g_object_class_install_property (object_class, 484 g_object_class_install_property (object_class,
496 PROP_WRAP_WIDTH, 485 PROP_WRAP_WIDTH,
497 g_param_spec_int ("wrap_width", 486 g_param_spec_int ("wrap_width",
498 _("Wrap width"), 487 P_("Wrap width"),
499 _("Wrap width for layouting the items in a grid"), 488 P_("Wrap width for layouting the items in a grid"),
500 0, 489 0,
501 G_MAXINT, 490 G_MAXINT,
502 0, 491 0,
503 G_PARAM_READWRITE)); 492 G_PARAM_READWRITE));
504 493
505 g_object_class_install_property (object_class, 494 g_object_class_install_property (object_class,
506 PROP_ROW_SPAN_COLUMN, 495 PROP_ROW_SPAN_COLUMN,
507 g_param_spec_int ("row_span_column", 496 g_param_spec_int ("row_span_column",
508 _("Row span column"), 497 P_("Row span column"),
509 _("TreeModel column containing the row span values"), 498 P_("TreeModel column containing the row span values"),
510 0, 499 0,
511 G_MAXINT, 500 G_MAXINT,
512 0, 501 0,
513 G_PARAM_READWRITE)); 502 G_PARAM_READWRITE));
514 503
515 g_object_class_install_property (object_class, 504 g_object_class_install_property (object_class,
516 PROP_COLUMN_SPAN_COLUMN, 505 PROP_COLUMN_SPAN_COLUMN,
517 g_param_spec_int ("column_span_column", 506 g_param_spec_int ("column_span_column",
518 _("Column span column"), 507 P_("Column span column"),
519 508
520 _("TreeModel column containing the column span values"), 509 P_("TreeModel column containing the column span values"),
521 0, 510 0,
522 G_MAXINT, 511 G_MAXINT,
523 0, 512 0,
524 G_PARAM_READWRITE)); 513 G_PARAM_READWRITE));
525 514
526 g_object_class_install_property (object_class, 515 g_object_class_install_property (object_class,
527 PROP_ACTIVE, 516 PROP_ACTIVE,
528 g_param_spec_int ("active", 517 g_param_spec_int ("active",
529 _("Active item"), 518 P_("Active item"),
530 _("The item which is currently active"), 519 P_("The item which is currently active"),
531 -1, 520 -1,
532 G_MAXINT, 521 G_MAXINT,
533 -1, 522 -1,
534 G_PARAM_READWRITE)); 523 G_PARAM_READWRITE));
535 524
536 gtk_widget_class_install_style_property (widget_class, 525 gtk_widget_class_install_style_property (widget_class,
537 g_param_spec_boolean ("appears-as-list", 526 g_param_spec_boolean ("appears-as-list",
538 _("Appears as list"), 527 P_("Appears as list"),
539 _("Whether combobox dropdowns should look like lists rather than menus"), 528 P_("Whether combobox dropdowns should look like lists rather than menus"),
540 FALSE, 529 FALSE,
541 G_PARAM_READABLE)); 530 G_PARAM_READABLE));
542 } 531 }
543 532
544 static void 533 static void