From owner-svn-ports-head@freebsd.org Mon Aug 10 15:57:31 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8095F99E082; Mon, 10 Aug 2015 15:57:31 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 70DA4A2B; Mon, 10 Aug 2015 15:57:31 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7AFvV8V007143; Mon, 10 Aug 2015 15:57:31 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7AFvUGP007139; Mon, 10 Aug 2015 15:57:30 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201508101557.t7AFvUGP007139@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Mon, 10 Aug 2015 15:57:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r393875 - in head/x11-toolkits/gtk30: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2015 15:57:31 -0000 Author: kwm Date: Mon Aug 10 15:57:30 2015 New Revision: 393875 URL: https://svnweb.freebsd.org/changeset/ports/393875 Log: Gtk+ 3.16 removed Type a head support in the filechooser. While Gtk+ 3.17 has another way of archiving this, add type a head back as a optional (default off) option. Requested by: novel@ Tested by: novel@ Added: head/x11-toolkits/gtk30/files/extra-gtk_gtkfilechooserwidget.c (contents, props changed) head/x11-toolkits/gtk30/files/extra-gtk_ui_gtkfilechooserwidget.ui (contents, props changed) Modified: head/x11-toolkits/gtk30/Makefile Modified: head/x11-toolkits/gtk30/Makefile ============================================================================== --- head/x11-toolkits/gtk30/Makefile Mon Aug 10 15:47:18 2015 (r393874) +++ head/x11-toolkits/gtk30/Makefile Mon Aug 10 15:57:30 2015 (r393875) @@ -55,7 +55,7 @@ GLIB_SCHEMAS= org.gtk.Demo.gschema.xml \ org.gtk.Settings.Debug.gschema.xml \ org.gtk.Settings.FileChooser.gschema.xml -OPTIONS_DEFINE= CUPS CLOUDPRINT COLORD DEBUG BROADWAY +OPTIONS_DEFINE= CUPS CLOUDPRINT COLORD DEBUG BROADWAY TYPEAHEAD OPTIONS_DEFAULT=CUPS COLORD BROADWAY OPTIONS_SUB= yes @@ -76,9 +76,17 @@ CLOUDPRINT_LIB_DEPENDS= librest-0.7.so:$ DEBUG_CONFIGURE_ENABLE=debug +# GTK+ 3.17 has a beter way +TYPEAHEAD_DESC= Re-enable type-a-head functionality in file chooser + # needed for the exists() check, booo .include +.if ${PORT_OPTIONS:MTYPEAHEAD} +EXTRA_PATCHES+= ${FILESDIR}/extra-gtk_gtkfilechooserwidget.c \ + ${FILESDIR}/extra-gtk_ui_gtkfilechooserwidget.ui +.endif + post-patch: @${REINPLACE_CMD} -e 's|[{]libdir[}]/locale|{datadir}/locale|g' \ ${WRKSRC}/configure Added: head/x11-toolkits/gtk30/files/extra-gtk_gtkfilechooserwidget.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/gtk30/files/extra-gtk_gtkfilechooserwidget.c Mon Aug 10 15:57:30 2015 (r393875) @@ -0,0 +1,18 @@ +--- gtk/gtkfilechooserwidget.c.orig 2015-08-10 13:02:47.225114000 +0200 ++++ gtk/gtkfilechooserwidget.c 2015-08-10 13:03:58.007015000 +0200 +@@ -1895,7 +1895,6 @@ file_list_set_sort_column_ids (GtkFileCh + { + GtkFileChooserWidgetPrivate *priv = impl->priv; + +- gtk_tree_view_set_search_column (GTK_TREE_VIEW (priv->browse_files_tree_view), -1); + + gtk_tree_view_column_set_sort_column_id (priv->list_name_column, MODEL_COL_NAME); + gtk_tree_view_column_set_sort_column_id (priv->list_mtime_column, MODEL_COL_MTIME); +@@ -3468,6 +3467,7 @@ load_set_model (GtkFileChooserWidget *im + gtk_tree_view_set_model (GTK_TREE_VIEW (priv->browse_files_tree_view), + GTK_TREE_MODEL (priv->browse_files_model)); + gtk_tree_view_columns_autosize (GTK_TREE_VIEW (priv->browse_files_tree_view)); ++ gtk_tree_view_set_search_column (GTK_TREE_VIEW (priv->browse_files_tree_view), MODEL_COL_NAME); + file_list_set_sort_column_ids (impl); + set_sort_column (impl); + profile_msg (" gtk_tree_view_set_model end", NULL); Added: head/x11-toolkits/gtk30/files/extra-gtk_ui_gtkfilechooserwidget.ui ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/gtk30/files/extra-gtk_ui_gtkfilechooserwidget.ui Mon Aug 10 15:57:30 2015 (r393875) @@ -0,0 +1,11 @@ +--- gtk/ui/gtkfilechooserwidget.ui.orig 2015-07-21 14:07:11.000000000 +0200 ++++ gtk/ui/gtkfilechooserwidget.ui 2015-08-10 13:01:52.186654000 +0200 +@@ -193,7 +193,7 @@ + True + True + True +- False ++ True + + + Files