aboutsummaryrefslogtreecommitdiff
path: root/editors/mousepad/files
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2013-04-23 17:43:17 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2013-04-23 17:43:17 +0000
commit1a8dedc83988ce043dc962b20d055c8fedc0e97d (patch)
tree6e22db9817d5fd0082fbb26aae461841839d8ad5 /editors/mousepad/files
parent386b6ccecbe0253e45b33843649c7f2ad27c72d0 (diff)
downloadports-1a8dedc83988ce043dc962b20d055c8fedc0e97d.tar.gz
ports-1a8dedc83988ce043dc962b20d055c8fedc0e97d.zip
Notes
Diffstat (limited to 'editors/mousepad/files')
-rw-r--r--editors/mousepad/files/patch-mousepad.desktop.in.in10
-rw-r--r--editors/mousepad/files/patch-mousepad__main.c10
-rw-r--r--editors/mousepad/files/patch-src_search.c28
3 files changed, 20 insertions, 28 deletions
diff --git a/editors/mousepad/files/patch-mousepad.desktop.in.in b/editors/mousepad/files/patch-mousepad.desktop.in.in
new file mode 100644
index 000000000000..d73cf190101f
--- /dev/null
+++ b/editors/mousepad/files/patch-mousepad.desktop.in.in
@@ -0,0 +1,10 @@
+--- ./mousepad.desktop.in.in.orig 2012-12-30 11:04:01.000000000 +0000
++++ ./mousepad.desktop.in.in 2012-12-30 15:36:39.000000000 +0000
+@@ -9,5 +9,5 @@
+ Terminal=false
+ StartupNotify=true
+ Type=Application
+-Categories=Application;Utility;TextEditor;GTK;
+-MimeType=text/plain
++Categories=Utility;TextEditor;GTK;
++MimeType=text/plain;
diff --git a/editors/mousepad/files/patch-mousepad__main.c b/editors/mousepad/files/patch-mousepad__main.c
new file mode 100644
index 000000000000..09d6963967d0
--- /dev/null
+++ b/editors/mousepad/files/patch-mousepad__main.c
@@ -0,0 +1,10 @@
+--- ./mousepad/main.c.orig 2012-12-30 11:04:01.000000000 +0000
++++ ./mousepad/main.c 2012-12-30 15:35:18.000000000 +0000
+@@ -72,6 +72,7 @@
+
+ /* bind the text domain to the locale directory */
+ bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
++ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
+ /* set the package textdomain */
+ textdomain (GETTEXT_PACKAGE);
diff --git a/editors/mousepad/files/patch-src_search.c b/editors/mousepad/files/patch-src_search.c
deleted file mode 100644
index 9060a7e4d303..000000000000
--- a/editors/mousepad/files/patch-src_search.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- 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);