[grisbi-cvs] grisbi/src gsb_select_icon.c,1.4,1.5

Martin Stromberger fabiolla at users.sourceforge.net
Tue Jan 6 14:55:00 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29689/src

Modified Files:
	gsb_select_icon.c 
Log Message:
minor layout-changes (border, size of icons in preview and modal-window)

Index: gsb_select_icon.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_select_icon.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gsb_select_icon.c	5 Jan 2009 22:46:19 -0000	1.4
+++ gsb_select_icon.c	6 Jan 2009 13:54:58 -0000	1.5
@@ -47,6 +47,7 @@
 /*END_STATIC*/
 
 /*START_EXTERN*/
+extern GtkWidget *window;
 /*END_EXTERN*/
 
 static GtkWidget * dialog;
@@ -85,12 +86,15 @@
     devel_debug ( name_icon );
     path_icon = g_path_get_dirname ( name_icon );
     dialog = gtk_dialog_new_with_buttons ( _("Browse icons"),
-                            NULL,
+                            GTK_WINDOW ( window ),
                             GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                             GTK_STOCK_CANCEL,
                             GTK_RESPONSE_REJECT,
                             NULL);
 
+    gtk_window_set_position ( GTK_WINDOW ( dialog ), GTK_WIN_POS_CENTER_ON_PARENT );
+    gtk_window_set_resizable ( GTK_WINDOW ( dialog ), TRUE );
+
     bouton_OK = gtk_dialog_add_button (GTK_DIALOG ( dialog ),
                                 GTK_STOCK_OK,
                                 GTK_RESPONSE_ACCEPT);
@@ -99,6 +103,7 @@
 
     /* création hbox pour GtkEntry répertoire et bouton sélection des répertoires */
     hbox = gtk_hbox_new ( FALSE, 5);
+	gtk_container_set_border_width ( GTK_CONTAINER( hbox ), 6 );
     gtk_box_pack_start ( GTK_BOX ( content_area ), hbox, FALSE, FALSE, 5 );
 
     /* création du GtkComboBoxEntry pour la saisie du répertoire */
@@ -115,6 +120,7 @@
                              GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
     gtk_box_pack_start ( GTK_BOX ( content_area ), scroll, TRUE, TRUE, 0 );
     icon_view = gsb_select_icon_create_icon_view ( name_icon );
+    gtk_container_set_border_width ( GTK_CONTAINER( scroll ), 6 );
     gtk_container_add ( GTK_CONTAINER ( scroll ), icon_view );
 
     /* gestion des signaux */
@@ -266,7 +272,7 @@
                 tree_path = gtk_tree_path_new_from_string ( tmpstr );
                 g_free ( tmpstr );
             }
-            pixbuf = gdk_pixbuf_new_from_file_at_size ( tmpstr, 48, 48, NULL);
+            pixbuf = gdk_pixbuf_new_from_file_at_size ( tmpstr, 32, 32, NULL);
             if ( pixbuf )
             {
                 gchar *tmpstr;
@@ -310,12 +316,14 @@
     GtkWidget * chooser;
     GtkFileFilter *filter;
     
-    chooser = gtk_file_chooser_dialog_new ( _("Browse"),
+    chooser = gtk_file_chooser_dialog_new ( _("Select icon directory"),
                         GTK_WINDOW (dialog),
                         GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
                         GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                         GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                         NULL);
+
+	gtk_window_set_position ( GTK_WINDOW (chooser), GTK_WIN_POS_CENTER_ON_PARENT );
     gtk_window_set_transient_for (GTK_WINDOW (chooser), GTK_WINDOW (dialog));
 	gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE);
     gtk_widget_set_size_request ( chooser, 600, 750 );



More information about the cvs mailing list