Use gnome_dialog_set_parent. ditto ditto.

1998-12-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gncal-todo.c (simple_todo_editor): Use gnome_dialog_set_parent.
	* goto.c (goto_dialog): ditto
	* prop.c (properties): ditto.

svn path=/trunk/; revision=522
This commit is contained in:
Miguel de Icaza
1998-12-10 02:57:11 +00:00
committed by Arturo Espinosa
parent 60ab9dc306
commit da6a42ae38
11 changed files with 34 additions and 12 deletions

View File

@ -1,3 +1,9 @@
1998-12-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-todo.c (simple_todo_editor): Use gnome_dialog_set_parent.
* goto.c (goto_dialog): ditto
* prop.c (properties): ditto.
1998-11-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* eventedit.c (ee_rp_init_exceptions): Update GtkClist usage.

View File

@ -99,7 +99,7 @@ simple_todo_editor (GncalTodo *todo, iCalObject *ico)
GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL,
NULL);
gnome_dialog_set_parent (GNOME_DIALOG (dialog), GTK_WINDOW (todo->calendar));
hbox = gtk_hbox_new (FALSE, 4);
gtk_container_border_width (GTK_CONTAINER (hbox), 4);
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), hbox, FALSE, FALSE, 0);

View File

@ -264,6 +264,7 @@ goto_dialog (GnomeCalendar *gcal)
goto_win = gnome_dialog_new (_("Go to date"),
GNOME_STOCK_BUTTON_CANCEL,
NULL);
gnome_dialog_set_parent (GNOME_DIALOG (goto_win), GTK_WINDOW (gcal));
vbox = GNOME_DIALOG (goto_win)->vbox;

View File

@ -99,7 +99,7 @@ simple_todo_editor (GncalTodo *todo, iCalObject *ico)
GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL,
NULL);
gnome_dialog_set_parent (GNOME_DIALOG (dialog), GTK_WINDOW (todo->calendar));
hbox = gtk_hbox_new (FALSE, 4);
gtk_container_border_width (GTK_CONTAINER (hbox), 4);
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), hbox, FALSE, FALSE, 0);

View File

@ -264,6 +264,7 @@ goto_dialog (GnomeCalendar *gcal)
goto_win = gnome_dialog_new (_("Go to date"),
GNOME_STOCK_BUTTON_CANCEL,
NULL);
gnome_dialog_set_parent (GNOME_DIALOG (goto_win), GTK_WINDOW (gcal));
vbox = GNOME_DIALOG (goto_win)->vbox;

View File

@ -380,6 +380,12 @@ save_as_calendar_cmd (GtkWidget *widget, void *data)
gtk_widget_destroy (GTK_WIDGET (fs));
}
static void
properties_cmd (GtkWidget *widget, GtkWidget *gcal)
{
properties (gcal);
}
static void
save_calendar_cmd (GtkWidget *widget, void *data)
{
@ -403,7 +409,7 @@ static GnomeUIInfo gnome_cal_file_menu [] = {
GNOMEUIINFO_SEPARATOR,
{ GNOME_APP_UI_ITEM, N_("P_references..."), NULL, properties, NULL, NULL,
{ GNOME_APP_UI_ITEM, N_("P_references..."), NULL, properties_cmd, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_PREF, 0, 0, NULL },
GNOMEUIINFO_SEPARATOR,

View File

@ -32,7 +32,7 @@ struct color_prop {
extern struct color_prop color_props[];
/* Creates and runs the preferences dialog box */
void properties (void);
void properties (GtkWidget *toplevel);
/* Asks for all the time-related displays to be updated when the user changes the time format
* preferences.

View File

@ -496,13 +496,14 @@ create_colors_page (void)
/* Creates and displays the preferences dialog for the whole application */
void
properties (void)
properties (GtkWidget *toplevel)
{
if (prop_win)
return;
prop_win = gnome_property_box_new ();
gtk_window_set_title (GTK_WINDOW (prop_win), _("Preferences"));
gnome_dialog_set_parent (GNOME_DIALOG (prop_win), GTK_WINDOW (toplevel));
create_time_display_page ();
create_colors_page ();

View File

@ -380,6 +380,12 @@ save_as_calendar_cmd (GtkWidget *widget, void *data)
gtk_widget_destroy (GTK_WIDGET (fs));
}
static void
properties_cmd (GtkWidget *widget, GtkWidget *gcal)
{
properties (gcal);
}
static void
save_calendar_cmd (GtkWidget *widget, void *data)
{
@ -403,7 +409,7 @@ static GnomeUIInfo gnome_cal_file_menu [] = {
GNOMEUIINFO_SEPARATOR,
{ GNOME_APP_UI_ITEM, N_("P_references..."), NULL, properties, NULL, NULL,
{ GNOME_APP_UI_ITEM, N_("P_references..."), NULL, properties_cmd, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_PREF, 0, 0, NULL },
GNOMEUIINFO_SEPARATOR,

View File

@ -32,7 +32,7 @@ struct color_prop {
extern struct color_prop color_props[];
/* Creates and runs the preferences dialog box */
void properties (void);
void properties (GtkWidget *toplevel);
/* Asks for all the time-related displays to be updated when the user changes the time format
* preferences.

View File

@ -496,13 +496,14 @@ create_colors_page (void)
/* Creates and displays the preferences dialog for the whole application */
void
properties (void)
properties (GtkWidget *toplevel)
{
if (prop_win)
return;
prop_win = gnome_property_box_new ();
gtk_window_set_title (GTK_WINDOW (prop_win), _("Preferences"));
gnome_dialog_set_parent (GNOME_DIALOG (prop_win), GTK_WINDOW (toplevel));
create_time_display_page ();
create_colors_page ();