1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-18 15:33:32 +02:00

Added custom ebuild for gajim (OTR branch) and required library (libasyncns

bindings), added patch for sylpheed 2.7.x, to introduce menu key on folder
list.
This commit is contained in:
root
2010-07-24 11:20:30 +02:00
parent 29608b8072
commit 72715fdc0b
11 changed files with 469 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff -Naur sylpheed-2.4.1.orig/libsylph/defs.h sylpheed-2.4.1/libsylph/defs.h
--- sylpheed-2.4.1.orig/libsylph/defs.h 2006-09-22 11:58:56.000000000 +0900
+++ sylpheed-2.4.1/libsylph/defs.h 2007-05-07 17:25:18.000000000 +0900
@@ -92,7 +92,7 @@
/* #define DEFAULT_INC_PATH "/usr/bin/imget" */
/* #define DEFAULT_INC_PROGRAM "imget" */
#define DEFAULT_SENDMAIL_CMD "/usr/sbin/sendmail -t -i"
-#define DEFAULT_BROWSER_CMD "mozilla-firefox -remote 'openURL(%s,new-window)'"
+#define DEFAULT_BROWSER_CMD "firefox -remote 'openURL(%s,new-window)'"
#ifdef _PATH_MAILDIR
# define DEFAULT_SPOOL_PATH _PATH_MAILDIR

View File

@@ -0,0 +1,17 @@
Index: configure.in
===================================================================
--- configure.in (revision 2022)
+++ configure.in (working copy)
@@ -266,11 +266,7 @@
AC_MSG_RESULT(yes)
CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gtkspell-2.0`"
LIBS="$LIBS `$PKG_CONFIG --libs gtkspell-2.0`"
- if $PKG_CONFIG --atleast-version 2.0.13 gtkspell-2.0 ; then
- AC_DEFINE(USE_ENCHANT, 1, Use Enchant with GtkSpell)
- elif $PKG_CONFIG --atleast-version 2.0.12 gtkspell-2.0 ; then
- LIBS="$LIBS -laspell"
- fi
+ AC_DEFINE(USE_ENCHANT, 1, Use Enchant with GtkSpell)
AC_DEFINE(USE_GTKSPELL, 1, Use GtkSpell in editor)
else
AC_MSG_RESULT(no)

View File

@@ -0,0 +1,32 @@
--- sylpheed-2.7.1_orig/src/folderview.c 2009-06-15 06:35:28.000000000 +0200
+++ sylpheed-2.7.1/src/folderview.c 2010-07-23 21:53:07.000000000 +0200
@@ -1634,8 +1634,9 @@
if (!event) return FALSE;
- if (event->button != 3)
- return FALSE;
+ // Show context menu
+ //if (event->button != 3)
+ // return FALSE;
if (!gtk_tree_selection_get_selected
(folderview->selection, NULL, &iter))
@@ -1879,6 +1880,17 @@
return TRUE;
}
break;
+ case GDK_Menu:
+ // Show context menu
+ if (folderview->selected) {
+ selected = gtk_tree_row_reference_get_path
+ (folderview->selected);
+ gtk_tree_selection_select_path(folderview->selection, selected);
+ folderview_menu_popup(folderview, event);
+ gtk_tree_path_free(selected);
+ return TRUE;
+ }
+ break;
default:
break;
}

View File

@@ -0,0 +1,55 @@
Index: libsylph/procmime.c
===================================================================
--- libsylph/procmime.c (revision 2195)
+++ libsylph/procmime.c (working copy)
@@ -1483,6 +1483,9 @@
g_free(dir);
mime_type_list = g_list_concat(mime_type_list, list);
+ list = procmime_get_mime_type_list(DATADIR "/mime/globs");
+ mime_type_list = g_list_concat(mime_type_list, list);
+
if (!mime_type_list) {
debug_print("mime.types not found\n");
return NULL;
@@ -1535,7 +1538,7 @@
g_strstrip(buf);
p = buf;
- while (*p && !g_ascii_isspace(*p)) p++;
+ while (*p && !g_ascii_isspace(*p) && *p != ':') p++;
if (*p) {
*p = '\0';
p++;
@@ -1548,7 +1551,7 @@
mime_type->type = g_strdup(buf);
mime_type->sub_type = g_strdup(delim + 1);
- while (*p && g_ascii_isspace(*p)) p++;
+ while (*p && (g_ascii_isspace(*p) || *p == '*' || *p == '.')) p++;
if (*p)
mime_type->extension = g_strdup(p);
else
@@ -1560,7 +1563,7 @@
fclose(fp);
if (!list)
- g_warning("Can't read mime.types\n");
+ g_warning("Can't read %s\n", file);
return list;
}
Index: libsylph/Makefile.am
===================================================================
--- libsylph/Makefile.am (revision 2195)
+++ libsylph/Makefile.am (working copy)
@@ -2,7 +2,8 @@
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"LibSylph\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
- -DLOCALEDIR=\""$(localedir)"\"
+ -DLOCALEDIR=\""$(localedir)"\" \
+ -DDATADIR=\""$(datadir)"\"
INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir) -I$(includedir)