gman (0.9.3-5.1) window2.c

Summary

 window2.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

    
download this patch

Patch contents

--- gman-0.9.3.orig/window2.c
+++ gman-0.9.3/window2.c
@@ -2,6 +2,7 @@
 /******************** window2.c **************************/
 
 #include <stdio.h>
+#include <string.h>
 #include <gtk/gtk.h>
 #include "menu.h"
 #include "list.h"
@@ -222,7 +223,7 @@
 	GtkWidget * x, *apply_button,*add_new_button;
 	gchar * c, *c2;
 	int i;
-	int select = (int)data;
+	long select = (long)data;
 	gchar * clist_item[3];
 	//	printf("point2 data = %d\n",select);
 	apply_button = (GtkWidget*)gtk_object_get_data(GTK_OBJECT(window2),"button2");
@@ -239,9 +240,9 @@
 		break;
 	case 3:									//Add New
 		x = (GtkWidget*)gtk_object_get_data(GTK_OBJECT(window2),"entry2");
-		c = gtk_entry_get_text(GTK_ENTRY(x));
+		c = (gchar *)gtk_entry_get_text(GTK_ENTRY(x));
 		if(!strcmp(c,"")) {
-			g_print("g-man: path name can not be empty\n");
+			g_print("gman: path name can not be empty\n");
 			break;
 		}
 		if (man_paths->have_item(c)) break;
@@ -268,7 +269,7 @@
 		gtk_widget_set_sensitive(apply_button,1);
 		break;
 	default:
-		g_print("g-man: sorry... this function not implementd yet, please wait for the future version\n");
+		g_print("gman: sorry... this function not implemented yet\n");
 	};
 	return 1;
 }