Commit e9395f8a authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Close dialog if parent is destroyed. Patch from Victor I.

2004-08-12  Alexander Larsson  <alexl@redhat.com>

	* src/nautilus-location-dialog.c (nautilus_location_dialog_new):
	Close dialog if parent is destroyed.
	Patch from Victor I. <lamer0@lamer0.com>
parent 23f50668
2004-08-12 Alexander Larsson <alexl@redhat.com>
* src/nautilus-location-dialog.c (nautilus_location_dialog_new):
Close dialog if parent is destroyed.
Patch from Victor I. <lamer0@lamer0.com>
2004-08-11 Alexander Larsson <alexl@redhat.com> 2004-08-11 Alexander Larsson <alexl@redhat.com>
   
* cut-n-paste-code/libegg/egg-recent-item.c: (egg_recent_item_new), * cut-n-paste-code/libegg/egg-recent-item.c: (egg_recent_item_new),
......
...@@ -136,6 +136,7 @@ nautilus_location_dialog_init (NautilusLocationDialog *dialog) ...@@ -136,6 +136,7 @@ nautilus_location_dialog_init (NautilusLocationDialog *dialog)
gtk_window_set_title (GTK_WINDOW (dialog), _("Open Location")); gtk_window_set_title (GTK_WINDOW (dialog), _("Open Location"));
gtk_window_set_default_size (GTK_WINDOW (dialog), 300, -1); gtk_window_set_default_size (GTK_WINDOW (dialog), 300, -1);
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 2); gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 2);
...@@ -186,6 +187,7 @@ nautilus_location_dialog_new (NautilusWindow *window) ...@@ -186,6 +187,7 @@ nautilus_location_dialog_new (NautilusWindow *window)
char *formatted_location; char *formatted_location;
dialog = gtk_widget_new (NAUTILUS_TYPE_LOCATION_DIALOG, NULL); dialog = gtk_widget_new (NAUTILUS_TYPE_LOCATION_DIALOG, NULL);
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (window));
if (window) { if (window) {
gtk_window_set_screen (GTK_WINDOW (dialog), gtk_window_set_screen (GTK_WINDOW (dialog),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment