Made the file entries modal as they live in modal dialogs. Fixes #89370.
2002-08-01 Federico Mena Quintero <federico@ximian.com> * file-types-properties.glade: Made the file entries modal as they live in modal dialogs. Fixes #89370. * service-edit-dialog.c (service_add_dialog_new): Return a GObject, not a GtkWidget. * file-types-capplet.c (add_service_cb): Do not assign a GtkWidget to a GObject.
This commit is contained in:
parent
a3029dc455
commit
0906294387
5 changed files with 18 additions and 9 deletions
|
@ -1,3 +1,14 @@
|
|||
2002-08-01 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* file-types-properties.glade: Made the file entries modal as they
|
||||
live in modal dialogs. Fixes #89370.
|
||||
|
||||
* service-edit-dialog.c (service_add_dialog_new): Return a
|
||||
GObject, not a GtkWidget.
|
||||
|
||||
* file-types-capplet.c (add_service_cb): Do not assign a GtkWidget
|
||||
to a GObject.
|
||||
|
||||
2002-07-17 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* mime-type-info.c (mime_type_info_new) : no need to preload the icon.
|
||||
|
|
|
@ -63,12 +63,11 @@ add_service_cb (GtkButton *button, GladeXML *dialog)
|
|||
{
|
||||
GtkTreeView *treeview;
|
||||
GtkTreeModel *model;
|
||||
GtkWidget *add_dialog;
|
||||
|
||||
treeview = GTK_TREE_VIEW (WID ("mime_types_tree"));
|
||||
model = gtk_tree_view_get_model (treeview);
|
||||
|
||||
add_dialog = service_add_dialog_new (model);
|
||||
service_add_dialog_new (model);
|
||||
}
|
||||
|
||||
static GObject *
|
||||
|
|
|
@ -755,7 +755,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="max_saved">10</property>
|
||||
<property name="directory_entry">False</property>
|
||||
<property name="modal">False</property>
|
||||
<property name="modal">True</property>
|
||||
|
||||
<child internal-child="entry">
|
||||
<widget class="GtkEntry" id="combo-entry1">
|
||||
|
@ -1105,7 +1105,7 @@
|
|||
|
||||
<child>
|
||||
<widget class="GnomeFileEntry" id="custom_program_entry">
|
||||
<property name="modal">no</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="directory_entry">no</property>
|
||||
<property name="visible">yes</property>
|
||||
|
||||
|
@ -1387,7 +1387,7 @@
|
|||
|
||||
<child>
|
||||
<widget class="GnomeFileEntry" id="program_entry">
|
||||
<property name="modal">no</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="directory_entry">no</property>
|
||||
<property name="visible">yes</property>
|
||||
|
||||
|
|
|
@ -310,14 +310,13 @@ service_edit_dialog_new (GtkTreeModel *model, ServiceInfo *info)
|
|||
NULL);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
GObject *
|
||||
service_add_dialog_new (GtkTreeModel *model)
|
||||
{
|
||||
GObject *res = g_object_new (service_edit_dialog_get_type (),
|
||||
return g_object_new (service_edit_dialog_get_type (),
|
||||
"model", model,
|
||||
"is-add", TRUE,
|
||||
NULL);
|
||||
return GTK_WIDGET (res);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -54,7 +54,7 @@ GType service_edit_dialog_get_type (void);
|
|||
|
||||
GObject *service_edit_dialog_new (GtkTreeModel *model,
|
||||
ServiceInfo *info);
|
||||
GtkWidget *service_add_dialog_new (GtkTreeModel *model);
|
||||
GObject *service_add_dialog_new (GtkTreeModel *model);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue