Always set run_program to TRUE

2002-01-27  Bradford Hovinen  <hovinen@ximian.com>

	* service-info.c (service_info_load_all): Always set run_program
	to TRUE

	* service-edit-dialog.c (fill_dialog): Disable look at content toggle
This commit is contained in:
Bradford Hovinen 2002-01-28 02:29:44 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 04270a79b5
commit fadeef3e41
4 changed files with 15 additions and 2 deletions

View file

@ -1,5 +1,10 @@
2002-01-27 Bradford Hovinen <hovinen@ximian.com> 2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* service-info.c (service_info_load_all): Always set run_program
to TRUE
* service-edit-dialog.c (fill_dialog): Disable look at content toggle
* mime-type-info.c (mime_category_info_load_all): Call * mime-type-info.c (mime_category_info_load_all): Call
_get_mime_application _get_mime_application

View file

@ -1,4 +1,4 @@
- Add categories to many types in MIME database - Add categories to many types in MIME database
- Fix gnome_url_show
- Need a way to get all apps in the app registry
- Better sorting on the MIME types tree - Better sorting on the MIME types tree
- Disable look at content for now
- Edit MIME type directly with command line option

View file

@ -326,8 +326,12 @@ fill_dialog (ServiceEditDialog *dialog)
gtk_widget_set_sensitive (WID ("protocol_entry"), FALSE); gtk_widget_set_sensitive (WID ("protocol_entry"), FALSE);
} }
#if 0 /* Keep the look at content toggle disabled until we support that in libgnome */
if (gnome_vfs_method_get (dialog->p->info->protocol) == NULL) if (gnome_vfs_method_get (dialog->p->info->protocol) == NULL)
gtk_widget_set_sensitive (WID ("look_at_content_toggle"), FALSE); gtk_widget_set_sensitive (WID ("look_at_content_toggle"), FALSE);
#else
gtk_widget_set_sensitive (WID ("look_at_content_toggle"), FALSE);
#endif
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("look_at_content_toggle")), !dialog->p->info->run_program); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("look_at_content_toggle")), !dialog->p->info->run_program);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("run_program_toggle")), dialog->p->info->run_program); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("run_program_toggle")), dialog->p->info->run_program);

View file

@ -113,7 +113,11 @@ service_info_load_all (ServiceInfo *info)
service_info_get_description (info); service_info_get_description (info);
#if 0
info->run_program = get_bool (info, "type"); info->run_program = get_bool (info, "type");
#else
info->run_program = TRUE;
#endif
if (info->custom_line == NULL) if (info->custom_line == NULL)
info->custom_line = get_string (info, "command"); info->custom_line = get_string (info, "command");