[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: o_picture.c
User: werner
Date: 06/12/18 12:11:14
Modified: . o_picture.c x_attribedit.c x_compselect.c
Log:
* src/o_picture.c: set transient_for flag for the dialogs
add image and modify image.
* src/x_attribedit.c: set transient_for flag for the dialog
* src/x_compselect.c: set the widget focus to the filter entry
present the window and select the filter text when reselecting
the dialog with "i". (ideas from Peter Clifton)
Revision Changes Path
1.8 +6 -0 eda/geda/gaf/gschem/src/o_picture.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: o_picture.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_picture.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- o_picture.c 17 Dec 2006 04:14:03 -0000 1.7
+++ o_picture.c 18 Dec 2006 17:11:14 -0000 1.8
@@ -178,6 +178,9 @@
gtk_window_position(GTK_WINDOW (w_current->pfswindow),
GTK_WIN_POS_NONE);
+ gtk_window_set_transient_for(GTK_WINDOW(file_selector),
+ GTK_WINDOW(w_current->main_window));
+
g_signal_connect (G_OBJECT (file_selector), "destroy",
G_CALLBACK (picture_selection_cancel), w_current);
@@ -851,6 +854,9 @@
gtk_window_position(GTK_WINDOW(w_current->pcfswindow),
GTK_WIN_POS_NONE);
+ gtk_window_set_transient_for(GTK_WINDOW(file_selector),
+ GTK_WINDOW(w_current->main_window));
+
g_signal_connect (G_OBJECT(file_selector), "destroy",
G_CALLBACK(picture_change_selection_cancel),
w_current);
1.7 +2 -0 eda/geda/gaf/gschem/src/x_attribedit.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_attribedit.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_attribedit.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- x_attribedit.c 17 Dec 2006 04:14:03 -0000 1.6
+++ x_attribedit.c 18 Dec 2006 17:11:14 -0000 1.7
@@ -363,6 +363,8 @@
gtk_window_set_title (GTK_WINDOW (aewindow), _("Single Attribute Editor"));
gtk_window_set_position (GTK_WINDOW (aewindow), GTK_WIN_POS_MOUSE);
gtk_window_set_modal (GTK_WINDOW (aewindow), TRUE);
+ gtk_window_set_transient_for(GTK_WINDOW(aewindow),
+ GTK_WINDOW(w_current->main_window));
table1 = gtk_table_new (3, 1, FALSE);
gtk_widget_ref (table1);
1.13 +3 -1 eda/geda/gaf/gschem/src/x_compselect.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_compselect.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_compselect.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- x_compselect.c 17 Dec 2006 04:14:03 -0000 1.12
+++ x_compselect.c 18 Dec 2006 17:11:14 -0000 1.13
@@ -187,8 +187,10 @@
gtk_widget_show (toplevel->cswindow);
} else {
- gdk_window_raise (toplevel->cswindow->window);
+ gtk_window_present (GTK_WINDOW(toplevel->cswindow));
}
+ gtk_editable_select_region(GTK_EDITABLE(COMPSELECT(toplevel->cswindow)->entry_filter), 0, -1);
+ gtk_widget_grab_focus (GTK_WIDGET(COMPSELECT(toplevel->cswindow)->entry_filter));
}
/*! \brief Closes the component selection dialog.
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs