diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c index 210ddc1dc..39fdbcb5d 100644 --- a/panels/color/cc-color-panel.c +++ b/panels/color/cc-color-panel.c @@ -448,6 +448,7 @@ out: static void gcm_prefs_profile_add_cb (GtkWidget *widget, CcColorPanel *prefs) { + const gchar *title; CdProfile *profile = NULL; CcColorPanelPrivate *priv = prefs->priv; @@ -457,6 +458,38 @@ gcm_prefs_profile_add_cb (GtkWidget *widget, CcColorPanel *prefs) profile = cd_device_get_default_profile (priv->current_device); gcm_prefs_add_profiles_suitable_for_devices (prefs, widget, profile); + /* set the title */ + widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, + "label_assign_title")); + switch (cd_device_get_kind (priv->current_device)) { + case CD_DEVICE_KIND_DISPLAY: + /* TRANSLATORS: this is the dialog title in the 'Add profile' UI */ + title = _("Available Profiles for Displays"); + break; + case CD_DEVICE_KIND_SCANNER: + /* TRANSLATORS: this is the dialog title in the 'Add profile' UI */ + title = _("Available Profiles for Scanners"); + break; + case CD_DEVICE_KIND_PRINTER: + /* TRANSLATORS: this is the dialog title in the 'Add profile' UI */ + title = _("Available Profiles for Printers"); + break; + case CD_DEVICE_KIND_CAMERA: + /* TRANSLATORS: this is the dialog title in the 'Add profile' UI */ + title = _("Available Profiles for Cameras"); + break; + case CD_DEVICE_KIND_WEBCAM: + /* TRANSLATORS: this is the dialog title in the 'Add profile' UI */ + title = _("Available Profiles for Webcams"); + break; + default: + /* TRANSLATORS: this is the dialog title in the 'Add profile' UI + * where the device type is not recognised */ + title = _("Available Profiles"); + break; + } + gtk_label_set_label (GTK_LABEL (widget), title); + /* show the dialog */ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_assign")); @@ -1089,7 +1122,6 @@ gcm_prefs_set_combo_simple_text (GtkWidget *combo_box) g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, "wrap-mode", PANGO_WRAP_WORD_CHAR, - "width-chars", 60, NULL); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo_box), renderer, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo_box), renderer, diff --git a/panels/color/color.ui b/panels/color/color.ui index 6592657e8..6e84ad388 100644 --- a/panels/color/color.ui +++ b/panels/color/color.ui @@ -73,7 +73,7 @@ True False - + True False Available Profiles @@ -98,6 +98,7 @@ True False + 5 False @@ -105,47 +106,9 @@ 1 - - - True - False - 9 - - - True - False - gtk-dialog-info - 6 - - - False - False - 0 - - - - - True - False - Only profiles that are compatible with the device will be listed above. - True - - - False - False - 1 - - - - - False - False - 2 - - - True + False True 1 @@ -259,50 +222,62 @@ True False + False True False - False + Add device True False + False True Add a virtual device Add a virtual device - Add device + False True False + True + 0 + Delete device True False + False True Remove a device Remove a device - Delete device + False True False + True + 1 + Set for all users False + False True Set this device for all users on this computer Set this device for all users on this computer - Set for all users + False True False + True + 2 @@ -310,68 +285,97 @@ True - False True False + False True False + Add profile True False - Add profile + False + False True False + True + 0 + Calibrate… False + False True Calibrate the device Calibrate the device - Calibrate… + False True False + True + 1 - False Remove profile + False + False + False True False + True + 2 - False View details + False + False + False True False + True + 3 + + False + + + False + True + 1 + + + False + True + 1 +