From: buliabyak Date: Tue, 4 Dec 2007 05:43:09 +0000 (+0000) Subject: use stockid for label; help text update X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c40c89bd461e33782517a81ef0cf38fcbba3aefb;p=inkscape.git use stockid for label; help text update --- diff --git a/src/widgets/paint-selector.cpp b/src/widgets/paint-selector.cpp index de9dd367c..ea9730d50 100644 --- a/src/widgets/paint-selector.cpp +++ b/src/widgets/paint-selector.cpp @@ -784,9 +784,13 @@ sp_pattern_menu_build (GtkWidget *m, GSList *pattern_list, SPDocument */*source* gtk_widget_show(hb); // create label - GtkWidget *l = gtk_label_new(repr->attribute("id")); + GtkWidget *l; + if (repr->attribute("inkscape:stockid")) + l = gtk_label_new(repr->attribute("inkscape:stockid")); + else + l = gtk_label_new(repr->attribute("id")); gtk_widget_show(l); - gtk_misc_set_alignment(GTK_MISC(l), 0.0, 0.5); + gtk_misc_set_alignment(GTK_MISC(l), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(hb), l, TRUE, TRUE, 0); @@ -849,7 +853,7 @@ ink_pattern_menu_populate_menu(GtkWidget *m, SPDocument *doc) // add separator { GtkWidget *i = gtk_separator_menu_item_new(); - gchar const *patid = "None as I'm not a pattern I'm a sperator"; + gchar const *patid = ""; g_object_set_data (G_OBJECT(i), "pattern", (void *) patid); gtk_widget_show(i); gtk_menu_append(GTK_MENU(m), i); @@ -973,7 +977,7 @@ sp_paint_selector_set_mode_pattern(SPPaintSelector *psel, SPPaintSelectorMode mo { GtkWidget *hb = gtk_hbox_new(FALSE, 0); GtkWidget *l = gtk_label_new(NULL); - gtk_label_set_markup(GTK_LABEL(l), _("Use Object > Pattern > Objects to Pattern to create a new pattern from selection.")); + gtk_label_set_markup(GTK_LABEL(l), _("Use the Node tool to adjust position, scale, and rotation of the pattern on canvas. Use Object > Pattern > Objects to Pattern to create a new pattern from selection.")); gtk_label_set_line_wrap(GTK_LABEL(l), true); gtk_widget_set_size_request(l, 180, -1); gtk_box_pack_start(GTK_BOX(hb), l, TRUE, TRUE, AUX_BETWEEN_BUTTON_GROUPS);