FreeBSD Bugzilla – Attachment 186437 Details for
Bug 219928
sysutils/garcon: Update to 0.6.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
garcon patch with mandatory GTK2
garcon.diff (text/plain), 6.51 KB, created by
Guido Falsi
on 2017-09-16 20:00:23 UTC
(
hide
)
Description:
garcon patch with mandatory GTK2
Filename:
MIME Type:
Creator:
Guido Falsi
Created:
2017-09-16 20:00:23 UTC
Size:
6.51 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 449905) >+++ Makefile (working copy) >@@ -2,10 +2,9 @@ > # $FreeBSD$ > > PORTNAME= garcon >-PORTVERSION= 0.4.0 >-PORTREVISION= 1 >+PORTVERSION= 0.6.1 > CATEGORIES= sysutils xfce >-MASTER_SITES= XFCE >+MASTER_SITES= XFCE/src/xfce/${PORTNAME}/${PORTVERSION:R} > DIST_SUBDIR= xfce4 > > MAINTAINER= xfce@FreeBSD.org >@@ -15,17 +14,22 @@ > # documentation is under GFDL 1.1. > LICENSE= GPLv2 > >+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ >+ libfreetype.so:print/freetype2 >+ > GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip >-USES= gmake libtool pathfix pkgconfig gettext-tools xfce tar:bzip2 >-USE_GNOME= glib20 gtk20 intltool intlhack >+USES= gettext-tools gmake libtool pathfix pkgconfig tar:bzip2 xfce:gtk3 >+USE_GNOME= glib20 gtk20 gtk30 intltool cairo gdkpixbuf2 > USE_XFCE= libmenu >+USE_LDCONFIG= yes > >-CONFIGURE_ARGS=--without-html-dir >+CONFIGURE_ARGS= --without-html-dir \ >+ --enable-gtk2 > > OPTIONS_DEFINE= NLS >-NLS_USES= gettext-runtime >+NLS_USES= gettext-runtime > NLS_CONFIGURE_ENABLE= nls >-OPTIONS_SUB= yes >+OPTIONS_SUB= yes > > .include <bsd.port.mk> >Index: distinfo >=================================================================== >--- distinfo (revision 449905) >+++ distinfo (working copy) >@@ -1,2 +1,3 @@ >-SHA256 (xfce4/garcon-0.4.0.tar.bz2) = 787dc859713b6518992d760d4b858fb02e8a30705e6f6e871d7a14cc97bca972 >-SIZE (xfce4/garcon-0.4.0.tar.bz2) = 466118 >+TIMESTAMP = 1497180847 >+SHA256 (xfce4/garcon-0.6.1.tar.bz2) = 41c31ba0498c2cc39de4a8e0c2367510adbf4bc2104c17feee358e51e6acf603 >+SIZE (xfce4/garcon-0.6.1.tar.bz2) = 511415 >Index: files/patch-configure >=================================================================== >--- files/patch-configure (revision 449905) >+++ files/patch-configure (working copy) >@@ -1,6 +1,6 @@ >---- ./configure.orig 2013-05-05 16:32:02.000000000 +0000 >-+++ ./configure 2013-05-05 21:17:24.000000000 +0000 >-@@ -13632,7 +13632,7 @@ >+--- configure.orig 2017-04-16 04:37:20 UTC >++++ configure >+@@ -14201,7 +14201,7 @@ $as_echo "#define HAVE_LC_MESSAGES 1" >> > > fi > fi >Index: files/patch-garcon-gtk_garcon-gtk-menu.c >=================================================================== >--- files/patch-garcon-gtk_garcon-gtk-menu.c (nonexistent) >+++ files/patch-garcon-gtk_garcon-gtk-menu.c (working copy) >@@ -0,0 +1,53 @@ >+--- garcon-gtk/garcon-gtk-menu.c.orig 2017-04-16 04:26:38 UTC >++++ garcon-gtk/garcon-gtk-menu.c >+@@ -650,8 +650,12 @@ garcon_gtk_menu_load_icon (const gchar *icon_name) >+ gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h); >+ size = MIN (w, h); >+ >+- if (! gtk_icon_theme_has_icon (icon_theme, icon_name)) >++ if (gtk_icon_theme_has_icon (icon_theme, icon_name)) >+ { >++ pixbuf = gtk_icon_theme_load_icon (icon_theme, icon_name, size, 0, NULL);; >++ } >++ else >++ { >+ if (g_path_is_absolute (icon_name)) >+ { >+ pixbuf = gdk_pixbuf_new_from_file_at_scale (icon_name, w, h, TRUE, NULL); >+@@ -684,22 +688,23 @@ garcon_gtk_menu_load_icon (const gchar *icon_name) >+ g_free (name); >+ } >+ } >++ } >+ >+- /* Turn the pixbuf into a gtk_image */ >+- if (G_LIKELY (pixbuf)) >+- { >+- /* scale the pixbuf down if it needs it */ >+- GdkPixbuf *tmp = gdk_pixbuf_scale_simple (pixbuf, w, h, GDK_INTERP_BILINEAR); >+- g_object_unref (pixbuf); >+- pixbuf = tmp; >++ /* Turn the pixbuf into a gtk_image */ >++ if (G_LIKELY (pixbuf)) >++ { >++ /* scale the pixbuf down if it needs it */ >++ GdkPixbuf *pixbuf_scaled = gdk_pixbuf_scale_simple (pixbuf, w, h, GDK_INTERP_BILINEAR); >++ g_object_unref (G_OBJECT (pixbuf)); >+ >+- image = gtk_image_new_from_pixbuf (pixbuf); >+- g_object_unref (G_OBJECT (pixbuf)); >+- } >++ image = gtk_image_new_from_pixbuf (pixbuf_scaled); >++ g_object_unref (G_OBJECT (pixbuf_scaled)); >+ } >+- >+- if (image == NULL) >+- image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU); >++ else >++ { >++ /* display the placeholder at least */ >++ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU); >++ } >+ >+ return image; >+ } > >Property changes on: files/patch-garcon-gtk_garcon-gtk-menu.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: pkg-descr >=================================================================== >--- pkg-descr (revision 449905) >+++ pkg-descr (working copy) >@@ -1,6 +1,5 @@ > Garcon is an implementation of the freedesktop.org menu specification > replacing the former Xfce menu library libxfce4menu. It is based on >-GLib/GIO only and aims at covering the entire specification except for >-legacy menus. >+GLib/GIO only and aims at covering the entire specification. > > WWW: http://www.xfce.org/ >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 449905) >+++ pkg-plist (working copy) >@@ -4,6 +4,7 @@ > include/garcon-1/garcon/garcon-marshal.h > include/garcon-1/garcon/garcon-menu-directory.h > include/garcon-1/garcon/garcon-menu-element.h >+include/garcon-1/garcon/garcon-menu-item-action.h > include/garcon-1/garcon/garcon-menu-item-cache.h > include/garcon-1/garcon/garcon-menu-item-pool.h > include/garcon-1/garcon/garcon-menu-item.h >@@ -16,6 +17,8 @@ > include/garcon-1/garcon/garcon.h > include/garcon-gtk2-1/garcon-gtk/garcon-gtk-menu.h > include/garcon-gtk2-1/garcon-gtk/garcon-gtk.h >+include/garcon-gtk3-1/garcon-gtk/garcon-gtk-menu.h >+include/garcon-gtk3-1/garcon-gtk/garcon-gtk.h > lib/libgarcon-1.so > lib/libgarcon-1.so.0 > lib/libgarcon-1.so.0.0.0 >@@ -22,8 +25,12 @@ > lib/libgarcon-gtk2-1.so > lib/libgarcon-gtk2-1.so.0 > lib/libgarcon-gtk2-1.so.0.0.0 >+lib/libgarcon-gtk3-1.so >+lib/libgarcon-gtk3-1.so.0 >+lib/libgarcon-gtk3-1.so.0.0.0 > libdata/pkgconfig/garcon-1.pc > libdata/pkgconfig/garcon-gtk2-1.pc >+libdata/pkgconfig/garcon-gtk3-1.pc > share/desktop-directories/xfce-accessories.directory > share/desktop-directories/xfce-development.directory > share/desktop-directories/xfce-education.directory >@@ -38,6 +45,7 @@ > share/desktop-directories/xfce-screensavers.directory > share/desktop-directories/xfce-settings.directory > share/desktop-directories/xfce-system.directory >+%%NLS%%share/locale/am/LC_MESSAGES/garcon.mo > %%NLS%%share/locale/ar/LC_MESSAGES/garcon.mo > %%NLS%%share/locale/ast/LC_MESSAGES/garcon.mo > %%NLS%%share/locale/bg/LC_MESSAGES/garcon.mo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219928
:
183404
|
183454
|
186207
| 186437