Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added contextual help links #1656

Closed
wants to merge 11 commits into from
Closed

Added contextual help links #1656

wants to merge 11 commits into from

Conversation

mpaglia0
Copy link
Contributor

No description provided.

@mpaglia0 mpaglia0 changed the title Send changes Added contextual help links Feb 26, 2018
@mpaglia0
Copy link
Contributor Author

I will now stop waiting your approval for the changes done till now.
Thanks

Copy link
Member

@houz houz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't mark all lines that are setting help links for already existing widgets. Just make sure to only do that once when a new widget gets created.

@@ -1391,17 +1392,20 @@ static void combo_changed(GtkComboBox *combo, dt_lib_collect_rule_t *d)
|| property == DT_COLLECTION_PROP_ISO)
{
gtk_widget_set_tooltip_text(d->text, _("type your query, use <, <=, >, >=, <>, =, [;] as operators"));
dt_gui_add_help_link(d->text, "collect_images.html#collect_images_usage");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to set the help text in this function, just do it once in gui_init() when the widgets are created.

@@ -142,6 +142,7 @@ static void _update_picker_output(dt_lib_module_t *self)
darktable.gui->reset = 1;
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data->picker_button),
module->request_color_pick != DT_REQUEST_COLORPICK_OFF);
dt_gui_add_help_link(data->picker_button, "global_color_picker.html#global_color_picker");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, only set the help text once when creating a widget.

@TurboGit TurboGit added the feature: enhancement current features to improve label Feb 28, 2018
@rawfiner
Copy link
Collaborator

This pull request should be closed. The commits have been integrated in pull request #1774, and have been integrated in master.
Thanks again for this work

@TurboGit
Copy link
Member

Indeed, thanks for the reminder.

@TurboGit TurboGit closed this Oct 27, 2018
@LebedevRI LebedevRI modified the milestone: 2.6 Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: enhancement current features to improve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants