forked from AuroraMiddleware/gtk
gtk: Intern css names
This avoids a bunch of strdups at startup.
This commit is contained in:
parent
4dc4db56dc
commit
ffd6baec42
@ -253,7 +253,7 @@ gtk_accel_label_class_init (GtkAccelLabelClass *class)
|
||||
|
||||
g_object_class_install_properties (gobject_class, LAST_PROP, props);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "accellabel");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("accellabel"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -402,7 +402,7 @@ gtk_action_bar_class_init (GtkActionBarClass *klass)
|
||||
g_object_class_install_properties (object_class, LAST_PROP, props);
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
|
||||
gtk_widget_class_set_css_name (widget_class, "actionbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("actionbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1176,7 +1176,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
|
||||
gtk_widget_class_bind_template_callback (widget_class, program_list_selection_activated);
|
||||
gtk_widget_class_bind_template_callback (widget_class, widget_button_press_event_cb);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "appchooser");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("appchooser"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -134,7 +134,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
|
||||
TRUE,
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "frame");
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), I_("frame"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -593,7 +593,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_assistant_cancel);
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_assistant_last);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "assistant");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("assistant"));
|
||||
}
|
||||
|
||||
static gint
|
||||
|
@ -172,7 +172,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
|
||||
FALSE,
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "buttonbox");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("buttonbox"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -259,7 +259,7 @@ gtk_box_class_init (GtkBoxClass *class)
|
||||
gtk_container_class_install_child_properties (container_class, LAST_CHILD_PROP, child_props);
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_FILLER);
|
||||
gtk_widget_class_set_css_name (widget_class, "box");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("box"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -284,7 +284,7 @@ gtk_button_class_init (GtkButtonClass *klass)
|
||||
widget_class->activate_signal = button_signals[ACTIVATE];
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("button"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -640,7 +640,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CALENDAR);
|
||||
gtk_widget_class_set_css_name (widget_class, "calendar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("calendar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -747,7 +747,7 @@ gtk_cell_editable_widget_class_init (GtkCellEditableWidgetClass *class)
|
||||
g_param_spec_string ("path", NULL, NULL,
|
||||
NULL, GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "acceleditor");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("acceleditor"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -266,7 +266,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
|
||||
FALSE,
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "cellview");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("cellview"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -718,7 +718,7 @@ gtk_center_box_class_init (GtkCenterBoxClass *klass)
|
||||
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_FILLER);
|
||||
gtk_widget_class_set_css_name (widget_class, "box");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("box"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -328,7 +328,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
|
||||
g_object_class_install_properties (object_class, NUM_PROPERTIES, props);
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CHECK_BOX);
|
||||
gtk_widget_class_set_css_name (widget_class, "checkbutton");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("checkbutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -225,7 +225,7 @@ gtk_check_menu_item_class_init (GtkCheckMenuItemClass *klass)
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_CHECK_MENU_ITEM_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "menuitem");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("menuitem"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -697,7 +697,7 @@ gtk_color_chooser_widget_class_init (GtkColorChooserWidgetClass *class)
|
||||
g_param_spec_boolean ("show-editor", P_("Show editor"), P_("Show editor"),
|
||||
FALSE, GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "colorchooser");
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), I_("colorchooser"));
|
||||
}
|
||||
|
||||
/* GtkColorChooser implementation {{{1 */
|
||||
|
@ -563,7 +563,7 @@ gtk_color_swatch_class_init (GtkColorSwatchClass *class)
|
||||
TRUE, GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_COLOR_SWATCH_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "colorswatch");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("colorswatch"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -894,7 +894,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
||||
gtk_widget_class_bind_template_callback (widget_class, gtk_combo_box_menu_hide);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_COMBO_BOX_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "combobox");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("combobox"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -597,7 +597,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkDialog, action_box);
|
||||
gtk_widget_class_bind_template_callback (widget_class, gtk_dialog_delete_event_handler);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "dialog");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("dialog"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1878,7 +1878,7 @@ gtk_entry_class_init (GtkEntryClass *class)
|
||||
"toggle-overwrite", 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ENTRY_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "entry");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("entry"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -341,7 +341,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_EXPANDER_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "expander");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("expander"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -468,7 +468,7 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
|
||||
|
||||
_gtk_file_chooser_install_properties (gobject_class);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "filechooserbutton");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("filechooserbutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -8519,7 +8519,7 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
|
||||
gtk_widget_class_bind_template_callback (widget_class, rename_file_rename_clicked);
|
||||
gtk_widget_class_bind_template_callback (widget_class, rename_file_end);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "filechooser");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("filechooser"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -471,7 +471,7 @@ gtk_flow_box_child_class_init (GtkFlowBoxChildClass *class)
|
||||
widget_class->activate_signal = child_signals[CHILD_ACTIVATE];
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_LIST_ITEM);
|
||||
gtk_widget_class_set_css_name (widget_class, "flowboxchild");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("flowboxchild"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -3684,7 +3684,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
|
||||
"unselect-all", 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_FLOW_BOX_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "flowbox");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("flowbox"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -611,7 +611,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "fontbutton");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("fontbutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -679,7 +679,7 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
|
||||
gtk_widget_class_bind_template_callback (widget_class, size_change_cb);
|
||||
gtk_widget_class_bind_template_callback (widget_class, output_cb);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "fontchooser");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("fontchooser"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -218,7 +218,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
class->compute_child_allocation = gtk_frame_real_compute_child_allocation;
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_FRAME_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "frame");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("frame"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1721,7 +1721,7 @@ gtk_grid_class_init (GtkGridClass *class)
|
||||
GTK_PARAM_READWRITE);
|
||||
|
||||
gtk_container_class_install_child_properties (container_class, N_CHILD_PROPERTIES, child_properties);
|
||||
gtk_widget_class_set_css_name (widget_class, "grid");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("grid"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1977,7 +1977,7 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class)
|
||||
g_object_class_install_properties (object_class, LAST_PROP, header_bar_props);
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
|
||||
gtk_widget_class_set_css_name (widget_class, "headerbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("headerbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -915,7 +915,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
GTK_MOVEMENT_VISUAL_POSITIONS, -1);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ICON_VIEW_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "iconview");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("iconview"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -271,7 +271,7 @@ gtk_image_class_init (GtkImageClass *class)
|
||||
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, image_props);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_IMAGE_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "image");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("image"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -408,7 +408,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInfoBar, close_button);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInfoBar, revealer);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "infobar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("infobar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1127,7 +1127,7 @@ gtk_label_class_init (GtkLabelClass *class)
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_LABEL_ACCESSIBLE);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "label");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("label"));
|
||||
|
||||
quark_shortcuts_connected = g_quark_from_static_string ("gtk-label-shortcuts-connected");
|
||||
quark_mnemonic_menu = g_quark_from_static_string ("gtk-mnemonic-menu");
|
||||
|
@ -1059,7 +1059,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
|
||||
g_object_class_install_properties (oclass, LAST_PROPERTY, properties);
|
||||
|
||||
gtk_widget_class_set_accessible_type (wclass, GTK_TYPE_LEVEL_BAR_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (wclass, "levelbar");
|
||||
gtk_widget_class_set_css_name (wclass, I_("levelbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -209,7 +209,7 @@ gtk_link_button_class_init (GtkLinkButtonClass *klass)
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_LINK_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("button"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -572,7 +572,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK | GDK_SHIFT_MASK,
|
||||
"unselect-all", 0);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "list");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("list"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -3362,7 +3362,7 @@ gtk_list_box_row_class_init (GtkListBoxRowClass *klass)
|
||||
|
||||
g_object_class_install_properties (object_class, LAST_ROW_PROPERTY, row_properties);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "row");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("row"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -323,7 +323,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkLockButton, stack);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_LOCK_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("button"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -933,7 +933,7 @@ gtk_menu_class_init (GtkMenuClass *class)
|
||||
GTK_SCROLL_PAGE_DOWN);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "menu");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("menu"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -200,7 +200,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_MENU_BAR);
|
||||
gtk_widget_class_set_css_name (widget_class, "menubar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("menubar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -576,7 +576,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
|
||||
g_object_class_install_properties (gobject_class, LAST_PROP, menu_button_props);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("button"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -665,7 +665,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target");
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_ITEM_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "menuitem");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("menuitem"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -272,7 +272,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkMessageDialog, secondary_label);
|
||||
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkMessageDialog, message_area);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "messagedialog");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("messagedialog"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -307,25 +307,25 @@ update_node_name (GtkModelButton *button)
|
||||
a11y_role = ATK_ROLE_PUSH_BUTTON;
|
||||
if (button->menu_name)
|
||||
{
|
||||
indicator_name = "arrow";
|
||||
indicator_name = I_("arrow");
|
||||
indicator_visible = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
indicator_name = "check";
|
||||
indicator_name = I_("check");
|
||||
indicator_visible = FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
case GTK_BUTTON_ROLE_CHECK:
|
||||
a11y_role = ATK_ROLE_CHECK_BOX;
|
||||
indicator_name = "check";
|
||||
indicator_name = I_("check");
|
||||
indicator_visible = TRUE;
|
||||
break;
|
||||
|
||||
case GTK_BUTTON_ROLE_RADIO:
|
||||
a11y_role = ATK_ROLE_RADIO_BUTTON;
|
||||
indicator_name = "radio";
|
||||
indicator_name = I_("radio");
|
||||
indicator_visible = TRUE;
|
||||
break;
|
||||
|
||||
@ -1040,7 +1040,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
|
||||
g_object_class_install_properties (object_class, LAST_PROPERTY, properties);
|
||||
|
||||
gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_PUSH_BUTTON);
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "modelbutton");
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), I_("modelbutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1041,7 +1041,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
add_tab_bindings (binding_set, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_NOTEBOOK_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "notebook");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("notebook"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -805,7 +805,7 @@ gtk_overlay_class_init (GtkOverlayClass *klass)
|
||||
GTK_TYPE_WIDGET,
|
||||
GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "overlay");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("overlay"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -692,7 +692,7 @@ gtk_paned_class_init (GtkPanedClass *class)
|
||||
add_move_binding (binding_set, GDK_KEY_KP_End, 0, GTK_SCROLL_END);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_PANED_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "paned");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("paned"));
|
||||
}
|
||||
|
||||
static GType
|
||||
|
@ -4752,7 +4752,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
|
||||
|
||||
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, properties);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "placessidebar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("placessidebar"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2241,7 +2241,7 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_listbox_row_activated);
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_recent_servers_listbox_row_activated);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "placesview");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("placesview"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1689,7 +1689,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
|
||||
|
||||
quark_widget_popovers = g_quark_from_static_string ("gtk-quark-widget-popovers");
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_POPOVER_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "popover");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("popover"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -557,7 +557,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
|
||||
gtk_widget_class_bind_template_callback (widget_class, update_number_up_layout);
|
||||
gtk_widget_class_bind_template_callback (widget_class, redraw_page_layout_preview);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "printdialog");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("printdialog"));
|
||||
}
|
||||
|
||||
/* Returns a toplevel GtkWindow, or NULL if none */
|
||||
|
@ -265,7 +265,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, progress_props);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_PROGRESS_BAR_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "progressbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("progressbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -217,7 +217,7 @@ gtk_radio_button_class_init (GtkRadioButtonClass *class)
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_RADIO_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "radiobutton");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("radiobutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -460,7 +460,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
g_object_class_install_properties (gobject_class, LAST_PROP, properties);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_RANGE_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "range");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("range"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -262,7 +262,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
|
||||
|
||||
g_object_class_install_properties (object_class, LAST_PROP, props);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "revealer");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("revealer"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -855,7 +855,7 @@ gtk_scale_class_init (GtkScaleClass *class)
|
||||
GTK_SCROLL_END);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SCALE_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "scale");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("scale"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -335,7 +335,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
|
||||
gtk_widget_class_bind_template_callback (widget_class, cb_popup_mapped);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SCALE_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("button"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -230,7 +230,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
|
||||
g_object_class_override_property (object_class, PROP_ORIENTATION, "orientation");
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_SCROLL_BAR);
|
||||
gtk_widget_class_set_css_name (widget_class, "scrollbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("scrollbar"));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -815,7 +815,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
|
||||
add_tab_bindings (binding_set, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SCROLLED_WINDOW_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "scrolledwindow");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("scrolledwindow"));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -414,7 +414,7 @@ gtk_search_bar_class_init (GtkSearchBarClass *klass)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkSearchBar, box_center);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkSearchBar, close_button);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "searchbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("searchbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -134,7 +134,7 @@ gtk_separator_class_init (GtkSeparatorClass *class)
|
||||
g_object_class_override_property (object_class, PROP_ORIENTATION, "orientation");
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_SEPARATOR);
|
||||
gtk_widget_class_set_css_name (widget_class, "separator");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("separator"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "gtkseparatormenuitem.h"
|
||||
#include "gtkintl.h"
|
||||
|
||||
#include "gtkstylecontext.h"
|
||||
|
||||
@ -50,7 +51,7 @@ gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class)
|
||||
GTK_CONTAINER_CLASS (class)->child_type = NULL;
|
||||
|
||||
gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_SEPARATOR);
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "separator");
|
||||
gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), I_("separator"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -101,7 +101,7 @@ gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class)
|
||||
TRUE,
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "separator");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("separator"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -362,7 +362,7 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
|
||||
|
||||
g_object_class_install_properties (object_class, LAST_PROP, properties);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "shortcuts-group");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("shortcuts-group"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -411,7 +411,7 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
|
||||
GDK_KEY_Page_Down, GDK_CONTROL_MASK,
|
||||
"change-current-page", 1,
|
||||
G_TYPE_INT, 1);
|
||||
gtk_widget_class_set_css_name (widget_class, "shortcuts-section");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("shortcuts-section"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -712,7 +712,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
|
||||
|
||||
g_object_class_install_properties (object_class, LAST_PROP, properties);
|
||||
gtk_widget_class_set_css_name (widget_class, "shortcut");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("shortcut"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "gtkstylecontext.h"
|
||||
#include "gtkrevealer.h"
|
||||
#include "gtkselection.h"
|
||||
#include "gtkintl.h"
|
||||
|
||||
#ifdef HAVE_CLOUDPROVIDERS
|
||||
#include <cloudproviders/cloudprovidersaccount.h>
|
||||
@ -615,7 +616,7 @@ gtk_sidebar_row_class_init (GtkSidebarRowClass *klass)
|
||||
gtk_widget_class_bind_template_child (widget_class, GtkSidebarRow, revealer);
|
||||
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_child_revealed);
|
||||
gtk_widget_class_set_css_name (widget_class, "row");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("row"));
|
||||
}
|
||||
|
||||
GtkSidebarRow*
|
||||
|
@ -559,7 +559,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
add_spin_binding (binding_set, GDK_KEY_Page_Down, GDK_CONTROL_MASK, GTK_SCROLL_START);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SPIN_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "spinbutton");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("spinbutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -206,7 +206,7 @@ gtk_spinner_class_init (GtkSpinnerClass *klass)
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SPINNER_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "spinner");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("spinner"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -427,7 +427,7 @@ gtk_stack_class_init (GtkStackClass *klass)
|
||||
gtk_container_class_install_child_properties (container_class, LAST_CHILD_PROP, stack_child_props);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_STACK_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "stack");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("stack"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -450,7 +450,7 @@ gtk_stack_sidebar_class_init (GtkStackSidebarClass *klass)
|
||||
|
||||
g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "stacksidebar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("stacksidebar"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -694,7 +694,7 @@ gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
|
||||
GTK_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "stackswitcher");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("stackswitcher"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -218,7 +218,7 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkStatusbar, label);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_STATUSBAR_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "statusbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("statusbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -615,7 +615,7 @@ gtk_switch_class_init (GtkSwitchClass *klass)
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_SWITCH_ACCESSIBLE);
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_TOGGLE_BUTTON);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "switch");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("switch"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1619,7 +1619,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_BACKWARD);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_TEXT_VIEW_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "textview");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("textview"));
|
||||
|
||||
quark_text_selection_data = g_quark_from_static_string ("gtk-text-view-text-selection-data");
|
||||
quark_gtk_signal = g_quark_from_static_string ("gtk-signal");
|
||||
|
@ -180,7 +180,7 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_TOGGLE_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("button"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -541,7 +541,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
add_ctrl_tab_bindings (binding_set, 0, GTK_DIR_TAB_FORWARD);
|
||||
add_ctrl_tab_bindings (binding_set, GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "toolbar");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("toolbar"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -275,7 +275,7 @@ gtk_tool_button_class_init (GtkToolButtonClass *klass)
|
||||
|
||||
g_type_class_add_private (object_class, sizeof (GtkToolButtonPrivate));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "toolbutton");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("toolbutton"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -201,7 +201,7 @@ gtk_tool_item_class_init (GtkToolItemClass *klass)
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "toolitem");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("toolitem"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1611,7 +1611,7 @@ gtk_tool_item_group_class_init (GtkToolItemGroupClass *cls)
|
||||
0,
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_set_css_name (wclass, "toolitemgroup");
|
||||
gtk_widget_class_set_css_name (wclass, I_("toolitemgroup"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -910,7 +910,7 @@ gtk_tool_palette_class_init (GtkToolPaletteClass *cls)
|
||||
DEFAULT_CHILD_EXPAND,
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_set_css_name (wclass, "toolpalette");
|
||||
gtk_widget_class_set_css_name (wclass, I_("toolpalette"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1657,7 +1657,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_F, GDK_CONTROL_MASK, "start-interactive-search", 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_TREE_VIEW_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "treeview");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("treeview"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -274,7 +274,7 @@ gtk_viewport_class_init (GtkViewportClass *class)
|
||||
GTK_SHADOW_IN,
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, "viewport");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("viewport"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -819,7 +819,7 @@ gtk_widget_get_type (void)
|
||||
NULL /* interface data */
|
||||
};
|
||||
|
||||
widget_type = g_type_register_static (G_TYPE_INITIALLY_UNOWNED, "GtkWidget",
|
||||
widget_type = g_type_register_static (G_TYPE_INITIALLY_UNOWNED, g_intern_static_string ("GtkWidget"),
|
||||
&widget_info, G_TYPE_FLAG_ABSTRACT);
|
||||
|
||||
g_type_add_class_private (widget_type, sizeof (GtkWidgetClassPrivate));
|
||||
@ -3144,7 +3144,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
"popup-menu", 0);
|
||||
|
||||
gtk_widget_class_set_accessible_type (klass, GTK_TYPE_WIDGET_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (klass, "widget");
|
||||
gtk_widget_class_set_css_name (klass, I_("widget"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1280,7 +1280,7 @@ gtk_window_class_init (GtkWindowClass *klass)
|
||||
add_tab_bindings (binding_set, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_WINDOW_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "window");
|
||||
gtk_widget_class_set_css_name (widget_class, I_("window"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user