Как попробовать gtksheet с gtk3 + - PullRequest
0 голосов
/ 19 января 2019

Я бы хотел проверить пакет gtksheet с помощью gtk3. версия 3,22 Думаю, я нашел хороший пакет на github!

https://github.com/fpaquet/gtksheet/tree/gtk3

Я клонировал исходный код C для тестирования с testgtksheet.c

Я использую мезон с meson.build

project('testgtksheet', 'c')
gtkdep = dependency('gtk+-3.0')
scr= ['gtkdataentry.c', 'gtkdataentry.h', 'gtkdataformat.c','gtkdatatextview.c','gtkitementry.c','gtkitementry.h',
'gtksheet.c',
'gtksheetcolumn.c',
'gtksheet-marshal.c',
'gtksheet-resources.c',
'gtksheettypebuiltins.c']

executable('demo', 'testgtksheet.c',scr, dependencies : gtkdep)

но у меня было много ошибок очень удивительно

сначала я проверил мезон, нормально ли работает другой проект с похожим синтаксисом? Хорошо ! Во-вторых, я проверил testgtksheet.c. с gtk3 +

все нормально

тем не менее gtkshheet кажется более старой версией .. следуй за результатом ниндзя

ninja
[1/2] Compiling C object 'demo@exe/gtkitementry.c.o'.
FAILED: demo@exe/gtkitementry.c.o 
cc -Idemo@exe -I. -I.. -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircore -I/usr/include/mircookie -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g -pthread  -MD -MQ 'demo@exe/gtkitementry.c.o' -MF 'demo@exe/gtkitementry.c.o.d' -o 'demo@exe/gtkitementry.c.o' -c ../gtkitementry.c
../gtkitementry.c: In function ‘gtk_item_entry_realize’:
../gtkitementry.c:335:15: error: ‘GdkWindowAttr {aka struct _GdkWindowAttr}’ has no member named ‘colormap’
     attributes.colormap = gtk_widget_get_colormap(widget);
               ^
../gtkitementry.c:335:27: warning: implicit declaration of function ‘gtk_widget_get_colormap’; did you mean ‘gtk_widget_get_font_map’? [-Wimplicit-function-declaration]
     attributes.colormap = gtk_widget_get_colormap(widget);
                           ^~~~~~~~~~~~~~~~~~~~~~~
                           gtk_widget_get_font_map
../gtkitementry.c:346:61: error: ‘GDK_WA_COLORMAP’ undeclared (first use in this function); did you mean ‘GDK_TARGET_COLORMAP’?
     attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
                                                             ^~~~~~~~~~~~~~~
                                                             GDK_TARGET_COLORMAP
../gtkitementry.c:346:61: note: each undeclared identifier is reported only once for each function it appears in
../gtkitementry.c:355:5: warning: ‘gdk_cursor_new’ is deprecated [-Wdeprecated-declarations]
     attributes.cursor = gdk_cursor_new(GDK_XTERM);
     ^~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:34:0,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gdk/gdkcursor.h:228:12: note: declared here
 GdkCursor* gdk_cursor_new   (GdkCursorType    cursor_type);
            ^~~~~~~~~~~~~~
../gtkitementry.c:358:10: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
     entry->text_area = gdk_window_new(gtk_widget_get_window(widget),
          ^~
../gtkitementry.c:360:35: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
     gdk_window_set_user_data(entry->text_area, entry);
                                   ^~
../gtkitementry.c:362:5: warning: ‘gdk_cursor_unref’ is deprecated: Use 'g_object_unref' instead [-Wdeprecated-declarations]
     gdk_cursor_unref(attributes.cursor);
     ^~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:34:0,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gdk/gdkcursor.h:247:13: note: declared here
 void        gdk_cursor_unref             (GdkCursor       *cursor);
             ^~~~~~~~~~~~~~~~
../gtkitementry.c:364:5: warning: ‘gtk_widget_set_style’ is deprecated [-Wdeprecated-declarations]
     gtk_widget_set_style(widget, gtk_style_attach(
     ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:737:13: note: declared here
 void        gtk_widget_set_style          (GtkWidget            *widget,
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:364:5: warning: ‘gtk_style_attach’ is deprecated: Use 'GtkStyleContext' instead [-Wdeprecated-declarations]
     gtk_widget_set_style(widget, gtk_style_attach(
     ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:446:11: note: declared here
 GtkStyle* gtk_style_attach                   (GtkStyle     *style,
           ^~~~~~~~~~~~~~~~
../gtkitementry.c:365:6: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
      gtk_widget_get_style(widget),
      ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:368:5: warning: ‘gdk_window_set_background’ is deprecated [-Wdeprecated-declarations]
     gdk_window_set_background(gtk_widget_get_window(widget),
     ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28:0,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gdk/gdkwindow.h:775:12: note: declared here
 void       gdk_window_set_background  (GdkWindow   *window,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:369:2: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
  &(gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]));
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:369:2: warning: ‘gtk_widget_get_state’ is deprecated: Use 'gtk_widget_get_state_flags' instead [-Wdeprecated-declarations]
  &(gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]));
  ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/gtkwidget.h:827:23: note: declared here
 GtkStateType          gtk_widget_get_state              (GtkWidget    *widget);
                       ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:370:5: warning: ‘gdk_window_set_background’ is deprecated [-Wdeprecated-declarations]
     gdk_window_set_background(entry->text_area,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28:0,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gdk/gdkwindow.h:775:12: note: declared here
 void       gdk_window_set_background  (GdkWindow   *window,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:370:36: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
     gdk_window_set_background(entry->text_area,
                                    ^~
../gtkitementry.c:371:2: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
  &(gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]));
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:371:2: warning: ‘gtk_widget_get_state’ is deprecated: Use 'gtk_widget_get_state_flags' instead [-Wdeprecated-declarations]
  &(gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]));
  ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/gtkwidget.h:827:23: note: declared here
 GtkStateType          gtk_widget_get_state              (GtkWidget    *widget);
                       ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:373:26: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
     gdk_window_show(entry->text_area);
                          ^~
../gtkitementry.c:320:18: warning: variable ‘editable’ set but not used [-Wunused-but-set-variable]
     GtkEditable *editable;
                  ^~~~~~~~
../gtkitementry.c: In function ‘_item_entry_get_borders’:
../gtkitementry.c:396:2: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
  *xborder = gtk_widget_get_style(widget)->xthickness;
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:397:2: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
  *yborder = gtk_widget_get_style(widget)->ythickness;
  ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c: In function ‘gtk_item_entry_size_request’:
../gtkitementry.c:423:2: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
  gtk_widget_get_style(widget)->font_desc,
  ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:426:10: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘ascent’
     entry->ascent = pango_font_metrics_get_ascent(metrics);
          ^~
../gtkitementry.c:427:10: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘descent’
     entry->descent = pango_font_metrics_get_descent(metrics);
          ^~
../gtkitementry.c:434:14: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘width_chars’
     if (entry->width_chars < 0)
              ^~
../gtkitementry.c:439:55: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘width_chars’
  requisition->width = PANGO_PIXELS(char_width) * entry->width_chars + xborder * 2;
                                                       ^~
In file included from /usr/include/pango-1.0/pango/pango-font.h:26:0,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from ../gtkitementry.c:43:
../gtkitementry.c:442:45: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘ascent’
     requisition->height = PANGO_PIXELS(entry->ascent + entry->descent) + yborder * 2;
                                             ^
/usr/include/pango-1.0/pango/pango-types.h:93:33: note: in definition of macro ‘PANGO_PIXELS’
 #define PANGO_PIXELS(d) (((int)(d) + 512) >> 10)
                                 ^
../gtkitementry.c:442:61: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘descent’
     requisition->height = PANGO_PIXELS(entry->ascent + entry->descent) + yborder * 2;
                                                             ^
/usr/include/pango-1.0/pango/pango-types.h:93:33: note: in definition of macro ‘PANGO_PIXELS’
 #define PANGO_PIXELS(d) (((int)(d) + 512) >> 10)
                                 ^
../gtkitementry.c: In function ‘_item_entry_get_text_area_size’:
../gtkitementry.c:480:5: warning: ‘gtk_widget_get_child_requisition’ is deprecated: Use 'gtk_widget_get_preferred_size' instead [-Wdeprecated-declarations]
     gtk_widget_get_child_requisition(widget, &requisition);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/gtkwidget.h:715:12: note: declared here
 void       gtk_widget_get_child_requisition (GtkWidget         *widget,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gtkitementry.c: In function ‘_item_entry_get_widget_window_size’:
../gtkitementry.c:529:5: warning: ‘gtk_widget_get_child_requisition’ is deprecated: Use 'gtk_widget_get_preferred_size' instead [-Wdeprecated-declarations]
     gtk_widget_get_child_requisition(widget, &requisition);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/gtkwidget.h:715:12: note: declared here
 void       gtk_widget_get_child_requisition (GtkWidget         *widget,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gtkitementry.c: In function ‘gtk_item_entry_size_allocate’:
../gtkitementry.c:604:30: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
  gdk_window_move_resize(entry->text_area,
                              ^~
../gtkitementry.c: In function ‘gtk_item_entry_draw’:
../gtkitementry.c:683:42: error: ‘event’ undeclared (first use in this function)
     if (gtk_widget_get_window(widget) == event->window)
                                          ^~~~~
../gtkitementry.c:685:19: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
     else if (entry->text_area == event->window)
                   ^~
../gtkitementry.c:691:2: warning: implicit declaration of function ‘gdk_draw_rectangle’; did you mean ‘gdk_cairo_rectangle’? [-Wimplicit-function-declaration]
  gdk_draw_rectangle(entry->text_area,
  ^~~~~~~~~~~~~~~~~~
  gdk_cairo_rectangle
../gtkitementry.c:691:26: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
  gdk_draw_rectangle(entry->text_area,
                          ^~
../gtkitementry.c:692:6: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
      gtk_widget_get_style(widget)->bg_gc[gtk_widget_get_state(widget)],
      ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:692:34: error: ‘GtkStyle {aka struct _GtkStyle}’ has no member named ‘bg_gc’
      gtk_widget_get_style(widget)->bg_gc[gtk_widget_get_state(widget)],
                                  ^~
../gtkitementry.c:692:6: warning: ‘gtk_widget_get_state’ is deprecated: Use 'gtk_widget_get_state_flags' instead [-Wdeprecated-declarations]
      gtk_widget_get_style(widget)->bg_gc[gtk_widget_get_state(widget)],
      ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/gtkwidget.h:827:23: note: declared here
 GtkStateType          gtk_widget_get_state              (GtkWidget    *widget);
                       ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:696:12: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘visible’
  if ((entry->visible || entry->invisible_char != 0) &&
            ^~
../gtkitementry.c:696:30: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘invisible_char’
  if ((entry->visible || entry->invisible_char != 0) &&
                              ^~
../gtkitementry.c:698:11: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘selection_bound’
      entry->selection_bound == entry->current_pos && entry->cursor_visible)
           ^~
../gtkitementry.c:698:37: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘current_pos’
      entry->selection_bound == entry->current_pos && entry->cursor_visible)
                                     ^~
../gtkitementry.c:698:59: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘cursor_visible’
      entry->selection_bound == entry->current_pos && entry->cursor_visible)
                                                           ^~
../gtkitementry.c:701:11: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘dnd_position’
  if (entry->dnd_position != -1)
           ^~
../gtkitementry.c: In function ‘gtk_item_entry_grab_focus’:
../gtkitementry.c:723:33: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘editable’
     if (select_on_focus && entry->editable && !entry->in_click)
                                 ^~
../gtkitementry.c:723:53: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘in_click’
     if (select_on_focus && entry->editable && !entry->in_click)
                                                     ^~
../gtkitementry.c: In function ‘gtk_item_entry_state_changed’:
../gtkitementry.c:748:2: warning: ‘gdk_window_set_background’ is deprecated [-Wdeprecated-declarations]
  gdk_window_set_background(gtk_widget_get_window(widget),
  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28:0,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gdk/gdkwindow.h:775:12: note: declared here
 void       gdk_window_set_background  (GdkWindow   *window,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:749:6: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
      &gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]);
      ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:749:6: warning: ‘gtk_widget_get_state’ is deprecated: Use 'gtk_widget_get_state_flags' instead [-Wdeprecated-declarations]
      &gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]);
      ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/gtkwidget.h:827:23: note: declared here
 GtkStateType          gtk_widget_get_state              (GtkWidget    *widget);
                       ^~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:750:2: warning: ‘gdk_window_set_background’ is deprecated [-Wdeprecated-declarations]
  gdk_window_set_background(entry->text_area,
  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28:0,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gdk/gdkwindow.h:775:12: note: declared here
 void       gdk_window_set_background  (GdkWindow   *window,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
../gtkitementry.c:750:33: error: ‘GtkEntry {aka struct _GtkEntry}’ has no member named ‘text_area’
  gdk_window_set_background(entry->text_area,
                                 ^~
../gtkitementry.c:751:6: warning: ‘gtk_widget_get_style’ is deprecated: Use 'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]
      &gtk_widget_get_style(widget)->bg[gtk_widget_get_state(widget)]);
      ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:273:0,
                 from ../gtkitementry.c:46:
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:742:13: note: declared here
 GtkStyle *  gtk_widget_get_style          (GtkWidget            *widget);
             ^~~~~~~~~~~~~~~~~~~

..... и так далее !!!!

и теперь тестовый код testgtksheet.c находится в пакете

Кто бы мог мне помочь?

...