Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. gcc editor.c -o fenster1 -Wall `pkg-config --libs gtksourceview-4 --cflags gtk+-3.0`
  2. editor.c: In function ‘main’:
  3. editor.c:27:11: warning: assignment to ‘GtkTextView *’ {aka ‘struct _GtkTextView *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} [-Wincompatible-pointer-types]
  4. textview = gtk_source_view_new();
  5. ^
  6. editor.c:46:25: warning: passing argument 1 of ‘gtk_widget_set_hexpand’ from incompatible pointer type [-Wincompatible-pointer-types]
  7. gtk_widget_set_hexpand(textview, TRUE);
  8. ^~~~~~~~
  9. In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
  10. from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
  11. from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
  12. from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
  13. from /usr/include/gtk-3.0/gtk/gtk.h:31,
  14. from editor.c:1:
  15. /usr/include/gtk-3.0/gtk/gtkwidget.h:1028:59: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkTextView *’ {aka ‘struct _GtkTextView *’}
  16. void gtk_widget_set_hexpand (GtkWidget *widget,
  17. ~~~~~~~~~~~~~~~~^~~~~~
  18. editor.c:47:25: warning: passing argument 1 of ‘gtk_widget_set_vexpand’ from incompatible pointer type [-Wincompatible-pointer-types]
  19. gtk_widget_set_vexpand(textview, TRUE);
  20. ^~~~~~~~
  21. In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
  22. from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
  23. from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
  24. from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
  25. from /usr/include/gtk-3.0/gtk/gtk.h:31,
  26. from editor.c:1:
  27. /usr/include/gtk-3.0/gtk/gtkwidget.h:1038:59: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkTextView *’ {aka ‘struct _GtkTextView *’}
  28. void gtk_widget_set_vexpand (GtkWidget *widget,
  29. ~~~~~~~~~~~~~~~~^~~~~~
  30. editor.c:55:44: warning: passing argument 1 of ‘gtk_widget_get_style_context’ from incompatible pointer type [-Wincompatible-pointer-types]
  31. context = gtk_widget_get_style_context(textview);
  32. ^~~~~~~~
  33. In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
  34. from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
  35. from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
  36. from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
  37. from /usr/include/gtk-3.0/gtk/gtk.h:31,
  38. from editor.c:1:
  39. /usr/include/gtk-3.0/gtk/gtkwidget.h:1311:19: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkTextView *’ {aka ‘struct _GtkTextView *’}
  40. GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget);
  41. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. editor.c:70:51: warning: passing argument 2 of ‘gtk_container_add’ from incompatible pointer type [-Wincompatible-pointer-types]
  43. gtk_container_add (GTK_CONTAINER (scrolled_win), textview);
  44. ^~~~~~~~
  45. In file included from /usr/include/gtk-3.0/gtk/gtkbin.h:33,
  46. from /usr/include/gtk-3.0/gtk/gtkwindow.h:35,
  47. from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
  48. from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
  49. from /usr/include/gtk-3.0/gtk/gtk.h:31,
  50. from editor.c:1:
  51. /usr/include/gtk-3.0/gtk/gtkcontainer.h:150:22: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkTextView *’ {aka ‘struct _GtkTextView *’}
  52. GtkWidget *widget);
  53. ~~~~~~~~~~~~~~^~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement