minor cleanups to my last commit
svn path=/trunk/; revision=26060
This commit is contained in:
@ -1814,7 +1814,7 @@ prefs_dialog_new (Gimp *gimp,
|
|||||||
GTK_TABLE (table), 0, size_group);
|
GTK_TABLE (table), 0, size_group);
|
||||||
gimp_help_set_help_data (combo, NULL, NULL);
|
gimp_help_set_help_data (combo, NULL, NULL);
|
||||||
|
|
||||||
dir = gimp_help_get_manual_location ();
|
dir = gimp_help_get_user_manual_location ();
|
||||||
|
|
||||||
if (g_file_test (dir, G_FILE_TEST_IS_DIR))
|
if (g_file_test (dir, G_FILE_TEST_IS_DIR))
|
||||||
{
|
{
|
||||||
@ -1843,6 +1843,7 @@ prefs_dialog_new (Gimp *gimp,
|
|||||||
gtk_widget_set_size_request (label, width - 20, -1);
|
gtk_widget_set_size_request (label, width - 20, -1);
|
||||||
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
|
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
|
||||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||||
|
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (label);
|
gtk_widget_show (label);
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ gimp_help_show (Gimp *gimp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gchar *
|
gchar *
|
||||||
gimp_help_get_manual_location (void)
|
gimp_help_get_user_manual_location (void)
|
||||||
{
|
{
|
||||||
return g_build_filename (gimp_data_directory (), "help", NULL);
|
return g_build_filename (gimp_data_directory (), "help", NULL);
|
||||||
}
|
}
|
||||||
@ -246,7 +246,8 @@ gimp_help_browser (Gimp *gimp)
|
|||||||
{
|
{
|
||||||
gimp_help_browser_error (gimp,
|
gimp_help_browser_error (gimp,
|
||||||
_("Help browser doesn't start"),
|
_("Help browser doesn't start"),
|
||||||
_("Could not start the GIMP help browser plug-in."),
|
_("Could not start the GIMP help browser "
|
||||||
|
"plug-in."),
|
||||||
NULL);
|
NULL);
|
||||||
busy = FALSE;
|
busy = FALSE;
|
||||||
|
|
||||||
@ -460,7 +461,7 @@ gimp_help_get_default_domain_uri (Gimp *gimp)
|
|||||||
if (config->user_manual_online)
|
if (config->user_manual_online)
|
||||||
return g_strdup (config->user_manual_online_uri);
|
return g_strdup (config->user_manual_online_uri);
|
||||||
|
|
||||||
dir = gimp_help_get_manual_location ();
|
dir = gimp_help_get_user_manual_location ();
|
||||||
uri = g_filename_to_uri (dir, NULL, NULL);
|
uri = g_filename_to_uri (dir, NULL, NULL);
|
||||||
g_free (dir);
|
g_free (dir);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ void gimp_help_show (Gimp *gimp,
|
|||||||
|
|
||||||
/* returns the folder where the user manual should be installed
|
/* returns the folder where the user manual should be installed
|
||||||
*/
|
*/
|
||||||
gchar * gimp_help_get_manual_location (void);
|
gchar * gimp_help_get_user_manual_location (void);
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GIMP_HELP_H__ */
|
#endif /* __GIMP_HELP_H__ */
|
||||||
|
Reference in New Issue
Block a user