1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gprefs.c (create_prop_box): Make the preferences dialog modal.
	Also, set the window title and set the window's parent.
	Removed some unused functions.
This commit is contained in:
Miguel de Icaza 1999-02-15 20:14:11 +00:00
parent 2c1f45565b
commit 573cf10675
2 changed files with 18 additions and 27 deletions

View File

@ -1,3 +1,9 @@
1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gprefs.c (create_prop_box): Make the preferences dialog modal.
Also, set the window title and set the window's parent.
Removed some unused functions.
1999-02-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (desktop_popup): Handle popup menus for the desktop.

View File

@ -72,24 +72,6 @@ typedef struct
typedef GtkWidget* (*CustomCreateFunc) (PrefsDlg *dlg, Property *prop);
typedef void (*CustomApplyFunc) (PrefsDlg *dlg, Property *prop);
static void
gnome_toggle_show_backup (void)
{
show_backups = !show_backups;
}
static void
gnome_toggle_show_hidden (void)
{
show_dot_files = !show_dot_files;
}
static void
toggle_mix_all_files (void)
{
mix_all_files = !mix_all_files;
}
static Property file_display_props [] =
{
{
@ -411,7 +393,7 @@ create_prop_widget (PrefsDlg *dlg, Property *prop)
{
switch (prop->type) {
case PROPERTY_NONE :
g_warning ("Invalid case in gprefs.c - create_prop_widget");
g_warning ("Invalid case in gprefs.c: create_prop_widget");
break;
case PROPERTY_BOOL :
return create_prop_bool (dlg, prop);
@ -460,6 +442,9 @@ create_prop_box (PrefsDlg *dlg)
PrefsPage *cur_page;
dlg->prop_box = gnome_property_box_new ();
gnome_dialog_set_parent (GNOME_DIALOG (dlg->prop_box), GTK_WINDOW (dlg->panel->xwindow));
gtk_window_set_modal (GTK_WINDOW (dlg->prop_box), TRUE);
gtk_window_set_title (GTK_WINDOW (dlg->prop_box), _("Preferences"));
i = 0;
cur_page = &(dlg->prefs_pages [i]);
@ -472,6 +457,7 @@ create_prop_box (PrefsDlg *dlg)
gtk_signal_connect (GTK_OBJECT (dlg->prop_box), "apply",
GTK_SIGNAL_FUNC (apply_callback), dlg);
}
void
gnome_configure_box (GtkWidget *widget, WPanel *panel)
{
@ -481,6 +467,5 @@ gnome_configure_box (GtkWidget *widget, WPanel *panel)
dlg.prefs_pages = prefs_pages;
create_prop_box (&dlg);
gtk_widget_show (dlg.prop_box);
}