Skip to content

Commit

Permalink
x11-toolkits/gtk40: update to 4.12.0
Browse files Browse the repository at this point in the history
Changes:	https://gitlab.gnome.org/GNOME/gtk/-/blob/4.12.0/NEWS
Reported by:	GitLab (notify releases)
  • Loading branch information
jbeich committed Aug 6, 2023
1 parent 48f4704 commit c7b4ee7
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 20 deletions.
8 changes: 4 additions & 4 deletions x11-toolkits/gtk40/Makefile
@@ -1,6 +1,5 @@
PORTNAME= gtk
PORTVERSION= 4.10.4
PORTREVISION= 1
PORTVERSION= 4.12.0
CATEGORIES= x11-toolkits
MASTER_SITES= GNOME
PKGNAMESUFFIX= 4
Expand Down Expand Up @@ -38,7 +37,7 @@ LDFLAGS+= -lexecinfo

BINARY_ALIAS= python3=${PYTHON_CMD}

LIBVERSION= 1.1000.4
LIBVERSION= 1.1200.0
PLIST_SUB+= LIBVERSION=${LIBVERSION}

GLIB_SCHEMAS= org.gtk.Demo4.gschema.xml \
Expand Down Expand Up @@ -67,7 +66,8 @@ GSTREAMER_USES= gstreamer
GSTREAMER_USE= GSTREAMER=bad,gl

VULKAN_DESC= GDK Vulkan renderer backend
VULKAN_BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers
VULKAN_BUILD_DEPENDS= glslc:graphics/shaderc \
vulkan-headers>0:graphics/vulkan-headers
VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader
VULKAN_RUN_DEPENDS= vulkan-headers>0:graphics/vulkan-headers
VULKAN_MESON_ENABLED= vulkan
Expand Down
6 changes: 3 additions & 3 deletions x11-toolkits/gtk40/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1685978842
SHA256 (gnome/gtk-4.10.4.tar.xz) = 7725400482e0685e28265e226c62847f4e73cfca9e9b416ac5838207f5377a24
SIZE (gnome/gtk-4.10.4.tar.xz) = 20526652
TIMESTAMP = 1691208086
SHA256 (gnome/gtk-4.12.0.tar.xz) = a6d10829f405b1afc0b65e2a9642c04126a1d1b638d11c6d97426da4f84f1f6f
SIZE (gnome/gtk-4.12.0.tar.xz) = 16918992
54 changes: 54 additions & 0 deletions x11-toolkits/gtk40/files/patch-gtk_print_gtkprinteroptionprivate.h
@@ -0,0 +1,54 @@
$ gtk4-demo
/usr/local/lib/gtk-4.0/4.0.0/printbackends/libprintbackend-file.so: Undefined symbol "gtk_printer_option_new"
Failed to load module: /usr/local/lib/gtk-4.0/4.0.0/printbackends/libprintbackend-file.so
/usr/local/lib/gtk-4.0/4.0.0/printbackends/libprintbackend-cups.so: Undefined symbol "gtk_printer_option_new"
Failed to load module: /usr/local/lib/gtk-4.0/4.0.0/printbackends/libprintbackend-cups.so
[...]

--- gtk/print/gtkprinteroptionprivate.h.orig 2023-08-05 04:01:26 UTC
+++ gtk/print/gtkprinteroptionprivate.h
@@ -27,6 +27,7 @@
#endif

#include <glib-object.h>
+#include <gdk/gdk.h>

G_BEGIN_DECLS

@@ -89,26 +90,36 @@ GType gtk_printer_option_get_type (void) G_GNU

GType gtk_printer_option_get_type (void) G_GNUC_CONST;

+GDK_AVAILABLE_IN_ALL
GtkPrinterOption *gtk_printer_option_new (const char *name,
const char *display_text,
GtkPrinterOptionType type);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_set (GtkPrinterOption *option,
const char *value);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_set_has_conflict (GtkPrinterOption *option,
gboolean has_conflict);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_clear_has_conflict (GtkPrinterOption *option);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_set_boolean (GtkPrinterOption *option,
gboolean value);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_allocate_choices (GtkPrinterOption *option,
int num);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_choices_from_array (GtkPrinterOption *option,
int num_choices,
const char **choices,
const char **choices_display);
+GDK_AVAILABLE_IN_ALL
gboolean gtk_printer_option_has_choice (GtkPrinterOption *option,
const char *choice);
+GDK_AVAILABLE_IN_ALL
void gtk_printer_option_set_activates_default (GtkPrinterOption *option,
gboolean activates);
+GDK_AVAILABLE_IN_ALL
gboolean gtk_printer_option_get_activates_default (GtkPrinterOption *option);


34 changes: 21 additions & 13 deletions x11-toolkits/gtk40/pkg-plist
Expand Up @@ -8,13 +8,15 @@ bin/gtk4-launch
bin/gtk4-node-editor
bin/gtk4-print-editor
bin/gtk4-query-settings
bin/gtk4-rendernode-tool
bin/gtk4-update-icon-cache
bin/gtk4-widget-factory
%%BROADWAY%%include/gtk-4.0/gdk/broadway/gdkbroadway.h
%%BROADWAY%%include/gtk-4.0/gdk/broadway/gdkbroadwaycursor.h
%%BROADWAY%%include/gtk-4.0/gdk/broadway/gdkbroadwaydisplay.h
%%BROADWAY%%include/gtk-4.0/gdk/broadway/gdkbroadwaymonitor.h
%%BROADWAY%%include/gtk-4.0/gdk/broadway/gdkbroadwaysurface.h
include/gtk-4.0/gdk/deprecated/gdkpixbuf.h
include/gtk-4.0/gdk/gdk.h
include/gtk-4.0/gdk/gdkapplaunchcontext.h
include/gtk-4.0/gdk/gdkcairo.h
Expand All @@ -34,6 +36,7 @@ include/gtk-4.0/gdk/gdkdisplay.h
include/gtk-4.0/gdk/gdkdisplaymanager.h
include/gtk-4.0/gdk/gdkdrag.h
include/gtk-4.0/gdk/gdkdragsurface.h
include/gtk-4.0/gdk/gdkdragsurfacesize.h
include/gtk-4.0/gdk/gdkdrawcontext.h
include/gtk-4.0/gdk/gdkdrop.h
include/gtk-4.0/gdk/gdkenums.h
Expand All @@ -43,13 +46,13 @@ include/gtk-4.0/gdk/gdkframeclock.h
include/gtk-4.0/gdk/gdkframetimings.h
include/gtk-4.0/gdk/gdkglcontext.h
include/gtk-4.0/gdk/gdkgltexture.h
include/gtk-4.0/gdk/gdkgltexturebuilder.h
include/gtk-4.0/gdk/gdkkeys.h
include/gtk-4.0/gdk/gdkkeysyms.h
include/gtk-4.0/gdk/gdkmemorytexture.h
include/gtk-4.0/gdk/gdkmonitor.h
include/gtk-4.0/gdk/gdkpaintable.h
include/gtk-4.0/gdk/gdkpango.h
include/gtk-4.0/gdk/gdkpixbuf.h
include/gtk-4.0/gdk/gdkpopup.h
include/gtk-4.0/gdk/gdkpopuplayout.h
include/gtk-4.0/gdk/gdkrectangle.h
Expand All @@ -63,8 +66,9 @@ include/gtk-4.0/gdk/gdktoplevel.h
include/gtk-4.0/gdk/gdktoplevellayout.h
include/gtk-4.0/gdk/gdktoplevelsize.h
include/gtk-4.0/gdk/gdktypes.h
include/gtk-4.0/gdk/gdkversionmacros.h
include/gtk-4.0/gdk/gdkvulkancontext.h
include/gtk-4.0/gdk/version/gdk-visibility.h
include/gtk-4.0/gdk/version/gdkversionmacros.h
%%WAYLAND%%include/gtk-4.0/gdk/wayland/gdkwayland.h
%%WAYLAND%%include/gtk-4.0/gdk/wayland/gdkwaylanddevice.h
%%WAYLAND%%include/gtk-4.0/gdk/wayland/gdkwaylanddisplay.h
Expand Down Expand Up @@ -197,7 +201,9 @@ include/gtk-4.0/gtk/gtkcolordialog.h
include/gtk-4.0/gtk/gtkcolordialogbutton.h
include/gtk-4.0/gtk/gtkcolorutils.h
include/gtk-4.0/gtk/gtkcolumnview.h
include/gtk-4.0/gtk/gtkcolumnviewcell.h
include/gtk-4.0/gtk/gtkcolumnviewcolumn.h
include/gtk-4.0/gtk/gtkcolumnviewrow.h
include/gtk-4.0/gtk/gtkcolumnviewsorter.h
include/gtk-4.0/gtk/gtkconstraint.h
include/gtk-4.0/gtk/gtkconstraintguide.h
Expand Down Expand Up @@ -271,6 +277,7 @@ include/gtk-4.0/gtk/gtklevelbar.h
include/gtk-4.0/gtk/gtklinkbutton.h
include/gtk-4.0/gtk/gtklistbase.h
include/gtk-4.0/gtk/gtklistbox.h
include/gtk-4.0/gtk/gtklistheader.h
include/gtk-4.0/gtk/gtklistitem.h
include/gtk-4.0/gtk/gtklistitemfactory.h
include/gtk-4.0/gtk/gtklistview.h
Expand All @@ -293,19 +300,13 @@ include/gtk-4.0/gtk/gtkorientable.h
include/gtk-4.0/gtk/gtkoverlay.h
include/gtk-4.0/gtk/gtkoverlaylayout.h
include/gtk-4.0/gtk/gtkpadcontroller.h
include/gtk-4.0/gtk/gtkpagesetup.h
include/gtk-4.0/gtk/gtkpaned.h
include/gtk-4.0/gtk/gtkpapersize.h
include/gtk-4.0/gtk/gtkpasswordentry.h
include/gtk-4.0/gtk/gtkpasswordentrybuffer.h
include/gtk-4.0/gtk/gtkpicture.h
include/gtk-4.0/gtk/gtkpopover.h
include/gtk-4.0/gtk/gtkpopovermenu.h
include/gtk-4.0/gtk/gtkpopovermenubar.h
include/gtk-4.0/gtk/gtkprintcontext.h
include/gtk-4.0/gtk/gtkprintoperation.h
include/gtk-4.0/gtk/gtkprintoperationpreview.h
include/gtk-4.0/gtk/gtkprintsettings.h
include/gtk-4.0/gtk/gtkprogressbar.h
include/gtk-4.0/gtk/gtkrange.h
include/gtk-4.0/gtk/gtkrecentmanager.h
Expand All @@ -316,8 +317,10 @@ include/gtk-4.0/gtk/gtkscalebutton.h
include/gtk-4.0/gtk/gtkscrollable.h
include/gtk-4.0/gtk/gtkscrollbar.h
include/gtk-4.0/gtk/gtkscrolledwindow.h
include/gtk-4.0/gtk/gtkscrollinfo.h
include/gtk-4.0/gtk/gtksearchbar.h
include/gtk-4.0/gtk/gtksearchentry.h
include/gtk-4.0/gtk/gtksectionmodel.h
include/gtk-4.0/gtk/gtkselectionfiltermodel.h
include/gtk-4.0/gtk/gtkselectionmodel.h
include/gtk-4.0/gtk/gtkseparator.h
Expand Down Expand Up @@ -378,12 +381,17 @@ include/gtk-4.0/gtk/gtkwindow.h
include/gtk-4.0/gtk/gtkwindowcontrols.h
include/gtk-4.0/gtk/gtkwindowgroup.h
include/gtk-4.0/gtk/gtkwindowhandle.h
include/gtk-4.0/unix-print/gtk/gtkpagesetupunixdialog.h
include/gtk-4.0/unix-print/gtk/gtkprinter.h
include/gtk-4.0/unix-print/gtk/gtkprintjob.h
include/gtk-4.0/unix-print/gtk/gtkprintunixdialog.h
include/gtk-4.0/unix-print/gtk/gtkunixprint-autocleanups.h
include/gtk-4.0/gtk/print/gtkpagesetup.h
include/gtk-4.0/gtk/print/gtkpapersize.h
include/gtk-4.0/gtk/print/gtkprintcontext.h
include/gtk-4.0/gtk/print/gtkprintoperation.h
include/gtk-4.0/gtk/print/gtkprintoperationpreview.h
include/gtk-4.0/gtk/print/gtkprintsettings.h
include/gtk-4.0/unix-print/gtk/gtkunixprint.h
include/gtk-4.0/unix-print/gtk/print/gtkpagesetupunixdialog.h
include/gtk-4.0/unix-print/gtk/print/gtkprinter.h
include/gtk-4.0/unix-print/gtk/print/gtkprintjob.h
include/gtk-4.0/unix-print/gtk/print/gtkprintunixdialog.h
lib/girepository-1.0/Gdk-4.0.typelib
%%WAYLAND%%lib/girepository-1.0/GdkWayland-4.0.typelib
%%X11%%lib/girepository-1.0/GdkX11-4.0.typelib
Expand Down

0 comments on commit c7b4ee7

Please sign in to comment.