Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2012 21:04:28 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r301040 - in head/editors/mousepad: . files
Message-ID:  <201207172104.q6HL4SVO095371@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olivierd
Date: Tue Jul 17 21:04:27 2012
New Revision: 301040
URL: http://svn.freebsd.org/changeset/ports/301040

Log:
  Fix search tool
  
  PR:	169569
  Submitted by:	Filipy Galiza Soares <65@filipy.com>
  Approved by:	miwi, rene (mentors)

Added:
  head/editors/mousepad/files/
  head/editors/mousepad/files/patch-src_search.c   (contents, props changed)
Modified:
  head/editors/mousepad/Makefile

Modified: head/editors/mousepad/Makefile
==============================================================================
--- head/editors/mousepad/Makefile	Tue Jul 17 20:57:14 2012	(r301039)
+++ head/editors/mousepad/Makefile	Tue Jul 17 21:04:27 2012	(r301040)
@@ -7,7 +7,7 @@
 
 PORTNAME=	mousepad
 PORTVERSION=	0.2.16
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	editors xfce
 MASTER_SITES=	${MASTER_SITE_XFCE}
 MASTER_SITE_SUBDIR=src/apps/${PORTNAME}/${PORTVERSION:R}

Added: head/editors/mousepad/files/patch-src_search.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/mousepad/files/patch-src_search.c	Tue Jul 17 21:04:27 2012	(r301040)
@@ -0,0 +1,28 @@
+--- src/search.c.orig
++++ src/search.c
+@@ -210,8 +210,11 @@
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+ 	 g_signal_connect(G_OBJECT(entry_find), "delete-text",
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+-	 if (sd->search.string_find) 
++	 if (sd->search.string_find) {
+ 		 gtk_entry_set_text(GTK_ENTRY(entry_find), sd->search.string_find);
++		 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
++			GTK_RESPONSE_OK, TRUE);
++	 }
+ 
+ 	gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
+ 	gtk_entry_set_activates_default(GTK_ENTRY(entry_find), TRUE);
+@@ -275,8 +278,11 @@
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+ 	 g_signal_connect(G_OBJECT(entry_find), "delete-text",
+ 		G_CALLBACK(toggle_sensitivity), NULL);
+-	 if (sd->search.string_find) 
++	 if (sd->search.string_find) {
+ 		 gtk_entry_set_text(GTK_ENTRY(entry_find), sd->search.string_find);
++		 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
++			GTK_RESPONSE_OK, TRUE);
++	}
+ 	label_replace = gtk_label_new_with_mnemonic(_("Re_place with: "));
+ 	 gtk_misc_set_alignment(GTK_MISC(label_replace), 0, 0.5);
+ 	 gtk_table_attach_defaults(GTK_TABLE(table), label_replace, 0, 1, 1, 2);
\ No newline at end of file



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207172104.q6HL4SVO095371>