[Xfce-bugs] [Bug 14601] New: Cancel button in progress dialog missing cast

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun Aug 12 00:13:22 CEST 2018


https://bugzilla.xfce.org/show_bug.cgi?id=14601

            Bug ID: 14601
           Summary: Cancel button in progress dialog missing cast
    Classification: Xfce Core
           Product: Thunar
           Version: git
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: Core
          Assignee: xfce-bugs at xfce.org
          Reporter: tony.paulic at gmail.com
                CC: benny at xfce.org, hjudt at xfce.org
  Target Milestone: 1.8.0

Created attachment 7882
  --> https://bugzilla.xfce.org/attachment.cgi?id=7882&action=edit
Fix missing CAST

With the recent
commit:https://git.xfce.org/xfce/thunar/commit/?id=781a76fa6fa65410a91b700195b95e124446888d
(Add label to cancel button in file operation dialog) the following is
displayed during compilation:

thunar-progress-view.c: In function ‘thunar_progress_view_init’:
thunar-progress-view.c:231:25: warning: passing argument 1 of
‘gtk_button_set_label’ from incompatible pointer type
[-Wincompatible-pointer-types]
   gtk_button_set_label (button, _("Cancel"));
                         ^~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:54,
                 from /usr/include/exo-2/exo/exo.h:32,
                 from thunar-progress-view.c:25:
/usr/include/gtk-3.0/gtk/gtkbutton.h:123:70: note: expected ‘GtkButton *’ {aka
‘struct _GtkButton *’} but argument is of type ‘GtkWidget *’ {aka ‘struct
_GtkWidget *’}
 void                  gtk_button_set_label          (GtkButton      *button,
                                                      ~~~~~~~~~~~~~~~~^~~~~~

Patch attached to add GTK_BUTTON cast.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list