set dialog title correctly when adding a service. ditto.
2002-04-22 Jody Goldberg <jody@gnome.org> * service-edit-dialog.c (service_edit_dialog_set_prop) : set dialog title correctly when adding a service. * mime-edit-dialog.c (mime_edit_dialog_set_prop) : ditto.
This commit is contained in:
parent
9d3b0647e8
commit
61829b4eea
3 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-04-22 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* service-edit-dialog.c (service_edit_dialog_set_prop) : set dialog
|
||||
title correctly when adding a service.
|
||||
* mime-edit-dialog.c (mime_edit_dialog_set_prop) : ditto.
|
||||
|
||||
2002-04-21 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* service-info.c (fill_service_apps) : Use the new hook in
|
||||
|
|
|
@ -264,6 +264,8 @@ mime_edit_dialog_set_prop (GObject *object, guint prop_id, const GValue *value,
|
|||
if (mime_edit_dialog->p->is_add) {
|
||||
mime_edit_dialog->p->info = mime_type_info_new (NULL, NULL);
|
||||
setup_add_dialog (mime_edit_dialog);
|
||||
gtk_window_set_title (GTK_WINDOW (mime_edit_dialog->p->dialog_win),
|
||||
(_("Add file type")));
|
||||
gtk_widget_show_all (mime_edit_dialog->p->dialog_win);
|
||||
}
|
||||
|
||||
|
|
|
@ -80,8 +80,10 @@ static void populate_app_list (ServiceEditDialog *dialog);
|
|||
static void store_data (ServiceEditDialog *dialog);
|
||||
static gboolean validate_data (ServiceEditDialog *dialog);
|
||||
|
||||
#ifdef SUPPORT_CHECK_CONTENT
|
||||
static void program_sensitive_cb (ServiceEditDialog *dialog,
|
||||
GtkToggleButton *tb);
|
||||
#endif
|
||||
static void program_changed_cb (ServiceEditDialog *dialog,
|
||||
GtkOptionMenu *option_menu);
|
||||
|
||||
|
@ -219,6 +221,8 @@ service_edit_dialog_set_prop (GObject *object, guint prop_id, const GValue *valu
|
|||
if (dialog->p->is_add) {
|
||||
dialog->p->info = service_info_new (NULL, NULL);
|
||||
setup_add_dialog (dialog);
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->p->dialog_win),
|
||||
(_("Add service")));
|
||||
gtk_widget_show_all (dialog->p->dialog_win);
|
||||
}
|
||||
|
||||
|
@ -536,6 +540,7 @@ validate_data (ServiceEditDialog *dialog)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#ifdef SUPPORT_CHECK_CONTENT
|
||||
static void
|
||||
program_sensitive_cb (ServiceEditDialog *dialog, GtkToggleButton *tb)
|
||||
{
|
||||
|
@ -545,6 +550,7 @@ program_sensitive_cb (ServiceEditDialog *dialog, GtkToggleButton *tb)
|
|||
strcmp (dialog->p->info->protocol, "ftp"))
|
||||
gtk_widget_set_sensitive (WID ("program_frame"), FALSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
program_changed_cb (ServiceEditDialog *dialog, GtkOptionMenu *option_menu)
|
||||
|
|
Loading…
Add table
Reference in a new issue