http://bugzilla.gnome.org/show_bug.cgi?id=80327 Doh! If the current tree
2002-04-30 Jody Goldberg <jody@gnome.org> http://bugzilla.gnome.org/show_bug.cgi?id=80327 * service-edit-dialog.c (program_changed_cb) : Doh! If the current tree selection is not a service then the app can be null.
This commit is contained in:
parent
58b43d9ad8
commit
fa54b079f5
2 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-04-30 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
http://bugzilla.gnome.org/show_bug.cgi?id=80327
|
||||
* service-edit-dialog.c (program_changed_cb) : Doh! If the current
|
||||
tree selection is not a service then the app can be null.
|
||||
|
||||
2002-04-26 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* service-edit-dialog.c (populate_app_list) : always populate the
|
||||
|
|
|
@ -553,6 +553,7 @@ program_changed_cb (ServiceEditDialog *dialog, GtkOptionMenu *option_menu)
|
|||
GtkMenuShell *menu;
|
||||
GnomeVFSMimeApplication *app;
|
||||
GList *child;
|
||||
gboolean requires_terminal = FALSE;
|
||||
|
||||
menu = GTK_MENU_SHELL (gtk_option_menu_get_menu (option_menu));
|
||||
id = gtk_option_menu_get_history (option_menu);
|
||||
|
@ -571,12 +572,17 @@ program_changed_cb (ServiceEditDialog *dialog, GtkOptionMenu *option_menu)
|
|||
app = g_object_get_data (G_OBJECT (child->data), "app");
|
||||
if (app == NULL)
|
||||
app = dialog->p->info->app;
|
||||
if (app->command != NULL)
|
||||
gnome_file_entry_set_filename (GNOME_FILE_ENTRY (WID ("custom_program_entry")),
|
||||
app->command);
|
||||
|
||||
if (app != NULL) {
|
||||
requires_terminal = app->requires_terminal;
|
||||
if (app->command != NULL)
|
||||
gnome_file_entry_set_filename (
|
||||
GNOME_FILE_ENTRY (WID ("custom_program_entry")),
|
||||
app->command);
|
||||
}
|
||||
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("needs_terminal_toggle")),
|
||||
app->requires_terminal);
|
||||
requires_terminal);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue