...
AMEL_PROVIDERDIR=\"\" -DPREFIX=\"/opt/evo\" -DG_LOG_DOMAIN=\"evolution-mail\" 
-ggdb -O2 -march=prescott -g -Wall -Wmissing-prototypes -Wno-sign-compare -MT 
em-folder-properties.lo -MD -MP -MF .deps/em-folder-properties.Tpo -c 
../../../evolution/mail/em-folder-properties.c  -fPIC -DPIC -o 
.libs/em-folder-properties.o
../../../evolution/mail/em-folder-properties.c: In function 'emfp_commit':
../../../evolution/mail/em-folder-properties.c:101: warning: implicit 
declaration of function 'gtk_spin_button_get_value_as_int'
../../../evolution/mail/em-folder-properties.c:101: error: 'GtkSpinButton' 
undeclared (first use in this function)
../../../evolution/mail/em-folder-properties.c:101: error: (Each undeclared 
identifier is reported only once
../../../evolution/mail/em-folder-properties.c:101: error: for each function it 
appears in.)
../../../evolution/mail/em-folder-properties.c:101: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:104: warning: implicit 
declaration of function 'gtk_spin_button_get_value'
../../../evolution/mail/em-folder-properties.c:104: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c: In function 
'emfp_get_folder_item':
../../../evolution/mail/em-folder-properties.c:252: warning: implicit 
declaration of function 'gtk_spin_button_new_with_range'
../../../evolution/mail/em-folder-properties.c:252: warning: assignment makes 
pointer from integer without a cast
../../../evolution/mail/em-folder-properties.c:253: warning: implicit 
declaration of function 'gtk_spin_button_set_value'
../../../evolution/mail/em-folder-properties.c:253: error: 'GtkSpinButton' 
undeclared (first use in this function)
../../../evolution/mail/em-folder-properties.c:253: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:254: warning: implicit 
declaration of function 'gtk_spin_button_set_numeric'
../../../evolution/mail/em-folder-properties.c:254: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:255: warning: implicit 
declaration of function 'gtk_spin_button_set_digits'
../../../evolution/mail/em-folder-properties.c:255: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:266: warning: assignment makes 
pointer from integer without a cast
../../../evolution/mail/em-folder-properties.c:267: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:268: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c:269: error: expected expression 
before ')' token
../../../evolution/mail/em-folder-properties.c: In function 
'emfp_dialog_got_folder_quota':
../../../evolution/mail/em-folder-properties.c:357: warning: assignment 
discards qualifiers from pointer target type
../../../evolution/mail/em-folder-properties.c:361: warning: assignment 
discards qualifiers from pointer target type
make[5]: *** [em-folder-properties.lo] Error 1
make[5]: *** Waiting for unfinished jobs....


last changes added these...

[EMAIL PROTECTED] ~/evo-src/evolution/mail $ svn diff -r PREV 
em-folder-properties.c
Index: em-folder-properties.c
===================================================================
--- em-folder-properties.c      (revision 35501)
+++ em-folder-properties.c      (working copy)
@@ -97,6 +97,12 @@
                        g_free (arg->ca_str);
                        arg->ca_str = (char *) gtk_entry_get_text ((GtkEntry *) 
prop_data->widgets[i]);
                        break;
+               case CAMEL_ARG_INT:
+                       arg->ca_int = gtk_spin_button_get_value_as_int 
((GtkSpinButton *) prop_data->widgets[i]);
+                       break;
+               case CAMEL_ARG_DBL:
+                       arg->ca_double = gtk_spin_button_get_value 
((GtkSpinButton *) prop_data->widgets[i]);
+                       break;
                default:
                        g_warning ("This shouldn't be reached\n");
                        break;
@@ -237,6 +243,34 @@
                        gtk_table_attach ((GtkTable *) table, w, 1, 2, row, row 
+ 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
                        prop_data->widgets[i] = w;
                        break;
+               case CAMEL_ARG_INT:
+                       label = gtk_label_new (prop->description);
+                       gtk_misc_set_alignment ((GtkMisc *) label, 0.0, 0.5);
+                       gtk_widget_show (label);
+                       gtk_table_attach ((GtkTable *) table, label, 0, 1, row, 
row + 1, GTK_FILL, 0, 0, 0);
+                       
+                       w = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 
1.0);
+                       gtk_spin_button_set_value ((GtkSpinButton *) w, 
(double) prop_data->argv->argv[i].ca_int);
+                       gtk_spin_button_set_numeric ((GtkSpinButton *) w, TRUE);
+                       gtk_spin_button_set_digits ((GtkSpinButton *) w, 0);
+                       gtk_widget_show (w);
+                       gtk_table_attach ((GtkTable *) table, w, 1, 2, row, row 
+ 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
+                       prop_data->widgets[i] = w;
+                       break;
+               case CAMEL_ARG_DBL:
+                       label = gtk_label_new (prop->description);
+                       gtk_misc_set_alignment ((GtkMisc *) label, 0.0, 0.5);
+                       gtk_widget_show (label);
+                       gtk_table_attach ((GtkTable *) table, label, 0, 1, row, 
row + 1, GTK_FILL, 0, 0, 0);
+                       
+                       w = gtk_spin_button_new_with_range (G_MININT, G_MAXINT, 
1.0);
+                       gtk_spin_button_set_value ((GtkSpinButton *) w, 
prop_data->argv->argv[i].ca_double);
+                       gtk_spin_button_set_numeric ((GtkSpinButton *) w, TRUE);
+                       gtk_spin_button_set_digits ((GtkSpinButton *) w, 2);
+                       gtk_widget_show (w);
+                       gtk_table_attach ((GtkTable *) table, w, 1, 2, row, row 
+ 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
+                       prop_data->widgets[i] = w;
+                       break;
                default:
                        g_warning ("This shouldn't be reached\n");
                        break;

_______________________________________________
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers

Reply via email to