Skip to content

Instantly share code, notes, and snippets.

@radupotop
Created August 11, 2024 09:10
Show Gist options
  • Save radupotop/38e4d284d914af6439c3e0bc87faef41 to your computer and use it in GitHub Desktop.
Save radupotop/38e4d284d914af6439c3e0bc87faef41 to your computer and use it in GitHub Desktop.
make[3]: Entering directory '/home/user/Downloads/transmission3-cli/src/transmission-3.00/gtk'
CC details.o
details.c: In function ‘on_edit_trackers’:
details.c:2604:9: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
2604 | d = gtk_dialog_new_with_buttons(gstr->str, win, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL,
| ^
details.c:2605:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
2605 | GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
| ^~~~~~~~~~~~~~~~~~~
details.c: In function ‘on_tracker_list_add_button_clicked’:
details.c:2714:9: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
2714 | w = gtk_dialog_new_with_buttons(gstr->str, GTK_WINDOW(di->dialog), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL,
| ^
details.c:2715:13: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
2715 | GTK_RESPONSE_CANCEL, GTK_STOCK_ADD, GTK_RESPONSE_ACCEPT, NULL);
| ^~~~~~~~~~~~~~~~~~~
details.c: In function ‘tracker_page_new’:
details.c:2840:5: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
2840 | gtk_button_set_image(GTK_BUTTON(w), gtk_image_new_from_icon_name(GTK_STOCK_EDIT, GTK_ICON_SIZE_BUTTON));
| ^~~~~~~~~~~~~~~~~~~~
details.c: In function ‘on_details_window_size_allocated’:
details.c:2902:16: warning: unused variable ‘gdk_window’ [-Wunused-variable]
2902 | GdkWindow* gdk_window = gtk_widget_get_window(gtk_window);
| ^~~~~~~~~~
details.c: In function ‘gtr_torrent_details_dialog_new’:
details.c:2943:5: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
2943 | d = gtk_dialog_new_with_buttons(NULL, parent, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
| ^
details.c:2948:23: error: passing argument 1 of ‘gtk_window_resize’ from incompatible pointer type [-Wincompatible-pointer-types]
2948 | gtk_window_resize(d, gtr_pref_int_get(TR_KEY_details_window_width), gtr_pref_int_get(TR_KEY_details_window_height));
| ^
| |
| GtkWidget * {aka struct _GtkWidget *}
In file included 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 details.c:14:
/usr/include/gtk-3.0/gtk/gtkwindow.h:427:52: note: expected ‘GtkWindow *’ {aka ‘struct _GtkWindow *’} but argument is of type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’}
427 | void gtk_window_resize (GtkWindow *window,
| ~~~~~~~~~~~~~^~~~~~
make[3]: *** [Makefile:724: details.o] Error 1
make[3]: Leaving directory '/home/user/Downloads/transmission3-cli/src/transmission-3.00/gtk'
make[2]: *** [Makefile:863: all-recursive] Error 1
make[2]: Leaving directory '/home/user/Downloads/transmission3-cli/src/transmission-3.00/gtk'
make[1]: *** [Makefile:605: all] Error 2
make[1]: Leaving directory '/home/user/Downloads/transmission3-cli/src/transmission-3.00/gtk'
make: *** [Makefile:513: all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment