View | Details | Raw Unified | Return to bug 143027
Collapse All | Expand All

(-)Makefile (-8 lines)
Lines 28-43 Link Here
28
PLIST_FILES=	bin/gmrun %%DATADIR%%/gmrunrc
28
PLIST_FILES=	bin/gmrun %%DATADIR%%/gmrunrc
29
PLIST_DIRS=	%%DATADIR%%
29
PLIST_DIRS=	%%DATADIR%%
30
30
31
BROKEN=		Does not build with recent GTK
32
DEPRECATED=	yes
33
EXPIRATION_DATE=	2010-03-20
34
35
.include <bsd.port.pre.mk>
31
.include <bsd.port.pre.mk>
36
32
37
post-patch:
38
	@${REINPLACE_CMD} -e '/select_executables_only(const struct dirent/ s,const ,,' \
39
		${WRKSRC}/src/gtkcompletionline.cc
40
41
post-install:
33
post-install:
42
.if !defined(NOPORTDOCS)
34
.if !defined(NOPORTDOCS)
43
	@${MKDIR} ${DOCSDIR}
35
	@${MKDIR} ${DOCSDIR}
(-)files/patch-src__gtkcompletionline.cc (+50 lines)
Added Link Here
1
--- ./src/gtkcompletionline.cc.orig	2003-11-16 13:55:07.000000000 +0300
2
+++ ./src/gtkcompletionline.cc	2010-01-20 21:25:08.847480188 +0300
3
@@ -39,6 +39,8 @@
4
 
5
 /* GLOBALS */
6
 
7
+GtkType type = 0;
8
+
9
 /* signals */
10
 enum {
11
   UNIQUE,
12
@@ -76,14 +78,13 @@
13
 on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data);
14
 
15
 /* get_type */
16
-guint gtk_completion_line_get_type(void)
17
+GtkType gtk_completion_line_get_type(void)
18
 {
19
-  static guint type = 0;
20
   if (type == 0)
21
   {
22
     GtkTypeInfo type_info =
23
     {
24
-      "GtkCompletionLine",
25
+      (gchar *)"GtkCompletionLine",
26
       sizeof(GtkCompletionLine),
27
       sizeof(GtkCompletionLineClass),
28
       (GtkClassInitFunc)gtk_completion_line_class_init,
29
@@ -376,7 +377,7 @@
30
   return 0;
31
 }
32
 
33
-int my_alphasort(const void* va, const void* vb) {
34
+int my_alphasort(const struct dirent** va, const struct dirent** vb) {
35
   const struct dirent** a = (const struct dirent**)va;
36
   const struct dirent** b = (const struct dirent**)vb;
37
 
38
@@ -551,10 +552,10 @@
39
 {
40
   string text = gtk_entry_get_text(GTK_ENTRY(object));
41
   gint where = (gint)text.find("~");
42
-  if (where != string::npos) {
43
+  if (where != (gint)string::npos) {
44
     if ((where > 0) && (text[where - 1] != ' '))
45
       return 0;
46
-    if (where < text.size() - 1 && text[where + 1] != '/') {
47
+    if (where < (gint)text.size() - 1 && text[where + 1] != '/') {
48
       // FIXME: Parse another user's home
49
     } else {
50
       string home = g_get_home_dir();
(-)files/patch-src__gtkcompletionline.h (+11 lines)
Added Link Here
1
--- ./src/gtkcompletionline.h.orig	2003-11-16 13:43:32.000000000 +0300
2
+++ ./src/gtkcompletionline.h	2010-01-20 21:24:57.489100621 +0300
3
@@ -76,7 +76,7 @@
4
     void (* cancel)(GtkCompletionLine *cl);
5
   };
6
 
7
-  guint gtk_completion_line_get_type(void);
8
+  GtkType gtk_completion_line_get_type(void);
9
   GtkWidget *gtk_completion_line_new();
10
 
11
   void gtk_completion_line_last_history_item(GtkCompletionLine*);

Return to bug 143027