Re: cannot compile gnumeric 1.9.15



Morten already fixed that yesterday:
http://git.gnome.org/cgit/gnumeric/commit/?id=6484b65027b0835bb43230a13710b296afec5b2c

Le mardi 03 novembre 2009 à 22:46 +0800, bill lam a écrit :
I download source for gnumeric 1.9.15 and it failed to compile:

-nces.Tpo -c -o dialog-preferences.lo dialog-preferences.c
dialog-preferences.c: In function ‘wordlist_pref_add’:
dialog-preferences.c:479: error: ‘gtk_entry_get_text_length’ undeclared (first use in this function)
dialog-preferences.c:479: error: (Each undeclared identifier is reported only once

the relevant code should be,

static void     
wordlist_pref_add (GtkButton *button, GOConfNode *node) {
  GtkEntry *entry = g_object_get_data (G_OBJECT (button), "entry");

  if (gtk_entry_get_text_length > 0) { 
    const gchar *text = gtk_entry_get_text (entry);

I have 2 questions.
1. gtk_entry_get_text_length is added to gtk+ since 2.14[1], but README said
       gtk+    >= 2.12.0 libgtk2.0-dev
2. in the context where gtk_entry_get_text_length is used, it looks like a
   variable/constant rather a function call.


[1] http://library.gnome.org/devel/gtk/2.15/GtkEntry.html#gtk-entry-get-text-length






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]