summaryrefslogtreecommitdiff
path: root/chat/gg2/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-01-17 20:15:28 +0000
committerkristerw <kristerw@pkgsrc.org>2005-01-17 20:15:28 +0000
commit1aaec7eec010cf251b53c0073952ff5b85cc9464 (patch)
tree851ec63de602288e9ca80bd402e029e6a5f6a1b5 /chat/gg2/patches
parent86f93d5f584dba69fbf56660106f0c413e1e76a0 (diff)
downloadpkgsrc-1aaec7eec010cf251b53c0073952ff5b85cc9464.tar.gz
Fix a C99ism to make this package build with gcc 2.95.
Diffstat (limited to 'chat/gg2/patches')
-rw-r--r--chat/gg2/patches/patch-ac21
-rw-r--r--chat/gg2/patches/patch-ad68
-rw-r--r--chat/gg2/patches/patch-ae44
-rw-r--r--chat/gg2/patches/patch-af39
-rw-r--r--chat/gg2/patches/patch-ag15
-rw-r--r--chat/gg2/patches/patch-ah23
-rw-r--r--chat/gg2/patches/patch-ai34
-rw-r--r--chat/gg2/patches/patch-aj30
8 files changed, 274 insertions, 0 deletions
diff --git a/chat/gg2/patches/patch-ac b/chat/gg2/patches/patch-ac
new file mode 100644
index 00000000000..4afb5b8a381
--- /dev/null
+++ b/chat/gg2/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/GUI/gui_chat.c.orig Mon Jan 17 20:43:59 2005
++++ src/plugins/GUI/gui_chat.c Mon Jan 17 20:44:35 2005
+@@ -252,6 +252,7 @@
+ gint chat_type = (gint) ggadu_config_var_get(gui_handler, "chat_type");
+ gui_chat_session *session = NULL;
+ GtkWidget *textview = NULL;
++ GtkTextBuffer *buf;
+
+ if (chat_type == CHAT_TYPE_TABBED)
+ {
+@@ -267,7 +268,7 @@
+ textview = g_object_get_data(G_OBJECT(session->chat), "history");
+ }
+
+- GtkTextBuffer *buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
++ buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
+ gtk_text_buffer_set_text(buf, "", -1);
+ }
+
diff --git a/chat/gg2/patches/patch-ad b/chat/gg2/patches/patch-ad
new file mode 100644
index 00000000000..8c3ed8c85aa
--- /dev/null
+++ b/chat/gg2/patches/patch-ad
@@ -0,0 +1,68 @@
+$NetBSD: patch-ad,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/GUI/gui_preferences.c.orig Mon Jan 17 20:45:38 2005
++++ src/plugins/GUI/gui_preferences.c Mon Jan 17 20:49:24 2005
+@@ -618,6 +618,8 @@
+ #endif
+ GtkWidget *label0_align, *label1_align, *label2_align;
+ GtkWidget *label3_align;
++ GtkWidget *exp;
++ GtkWidget *frm;
+
+ chat_vbox = gtk_vbox_new(FALSE, 5);
+
+@@ -694,8 +696,8 @@
+ gtk_table_set_row_spacings(GTK_TABLE(tabbox), 7);
+ gtk_table_set_col_spacings(GTK_TABLE(tabbox), 0);
+
+- GtkWidget *exp = gtk_expander_new(_("More advanced options"));
+- GtkWidget *frm = gtk_frame_new(_("Default size of window"));
++ exp = gtk_expander_new(_("More advanced options"));
++ frm = gtk_frame_new(_("Default size of window"));
+ gtk_frame_set_shadow_type(GTK_FRAME(frm),GTK_SHADOW_ETCHED_OUT);
+ gtk_container_add(GTK_CONTAINER(frm), tabbox);
+ gtk_container_add(GTK_CONTAINER(exp), frm);
+@@ -761,6 +763,7 @@
+ GtkWidget *combo_theme = NULL;
+ GtkWidget *combo_icons = NULL;
+ GtkWidget *notify_status_changes = NULL;
++ GtkWidget *entry;
+
+ gchar *dirname = NULL;
+ GDir *dir;
+@@ -922,7 +925,7 @@
+ label = gtk_label_new(_("Web Browser:"));
+ gtk_container_add(GTK_CONTAINER(label4_align), label);
+
+- GtkWidget *entry = gtk_entry_new();
++ entry = gtk_entry_new();
+ gtk_table_attach_defaults(GTK_TABLE(tabbox2), label4_align, 0, 1, 0, 1);
+ gtk_table_attach_defaults(GTK_TABLE(tabbox2), entry, 1, 2, 0, 1);
+ g_object_set_data(G_OBJECT(adv_vbox), "browser_exec", entry);
+@@ -975,6 +978,8 @@
+ gchar *previous_theme = ggadu_config_var_get(gui_handler, "theme");
+ gchar *previous_icons = ggadu_config_var_get(gui_handler, "icons");
+ gint response = -1;
++ GSList *combo_theme_slist;
++ GSList *combo_icons_slist;
+
+ print_debug("Preferences");
+
+@@ -1325,7 +1330,7 @@
+ entry = g_object_get_data(G_OBJECT(adv_vbox), "combo_theme");
+ g_return_if_fail(entry != NULL);
+
+- GSList *combo_theme_slist = g_object_get_data(G_OBJECT(entry), "combo_theme_slist");
++ combo_theme_slist = g_object_get_data(G_OBJECT(entry), "combo_theme_slist");
+ ggadu_config_var_set(gui_handler, "theme", (gpointer) g_strdup(g_slist_nth_data(combo_theme_slist, gtk_combo_box_get_active(GTK_COMBO_BOX(entry)))));
+
+ g_slist_foreach(combo_theme_slist, (GFunc) g_free, NULL);
+@@ -1333,7 +1338,7 @@
+
+ entry = g_object_get_data(G_OBJECT(adv_vbox), "combo_icons");
+ g_return_if_fail(entry != NULL);
+- GSList *combo_icons_slist = g_object_get_data(G_OBJECT(entry), "combo_icons_slist");
++ combo_icons_slist = g_object_get_data(G_OBJECT(entry), "combo_icons_slist");
+ ggadu_config_var_set(gui_handler, "icons", (gpointer) g_strdup(g_slist_nth_data(combo_icons_slist, gtk_combo_box_get_active(GTK_COMBO_BOX(entry)))));
+ g_slist_free(combo_icons_slist);
+
diff --git a/chat/gg2/patches/patch-ae b/chat/gg2/patches/patch-ae
new file mode 100644
index 00000000000..cd0edb9cc5d
--- /dev/null
+++ b/chat/gg2/patches/patch-ae
@@ -0,0 +1,44 @@
+$NetBSD: patch-ae,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/gadu_gadu/gadu_gadu_plugin.c.orig Mon Jan 17 20:50:35 2005
++++ src/plugins/gadu_gadu/gadu_gadu_plugin.c Mon Jan 17 20:52:52 2005
+@@ -422,6 +422,9 @@
+ uint32_t *uins;
+ GGaduMsg *msg = NULL;
+ gint i, j;
++ GSList *list;
++ GSList *us;
++ gchar *recipients_line;
+
+ /* w przypadku bledu/utraty polaczenia postap tak jak w przypadku disconnect */
+ if (!session || !(e = gg_watch_fd(session)) || (condition & G_IO_ERR) ||
+@@ -585,9 +588,9 @@
+
+ }
+
+- GSList *list = ggadu_repo_get_as_slist("gadu-gadu", REPO_VALUE_CONTACT);
+- GSList *us = list;
+- gchar *recipients_line = NULL;
++ list = ggadu_repo_get_as_slist("gadu-gadu", REPO_VALUE_CONTACT);
++ us = list;
++ recipients_line = NULL;
+
+ while (us)
+ {
+@@ -696,6 +699,7 @@
+
+ if (k)
+ {
++ gchar *status;
+ ip_addr.s_addr = n->remote_ip;
+ if (inet_ntoa(ip_addr) && (ggadu_strcasecmp(inet_ntoa(ip_addr), "0.0.0.0")))
+ {
+@@ -714,7 +718,7 @@
+
+ /* Zapiszmy sobie zmiane opisu do pliku historii */
+
+- gchar *status = NULL;
++ status = NULL;
+ if ((k->status == GG_STATUS_AVAIL) || (k->status == GG_STATUS_AVAIL_DESCR))
+ status = g_strdup_printf("avail");
+ else if ((k->status == GG_STATUS_BUSY) || (k->status == GG_STATUS_BUSY_DESCR))
diff --git a/chat/gg2/patches/patch-af b/chat/gg2/patches/patch-af
new file mode 100644
index 00000000000..3dd9cc3027b
--- /dev/null
+++ b/chat/gg2/patches/patch-af
@@ -0,0 +1,39 @@
+$NetBSD: patch-af,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/docklet/dockapp/dockapp_plugin.c.orig Mon Jan 17 20:54:04 2005
++++ src/plugins/docklet/dockapp/dockapp_plugin.c Mon Jan 17 20:55:32 2005
+@@ -105,6 +105,8 @@
+ //Przerysowuje elementy dynamiczne pixmapy
+ void draw_pixmap()
+ {
++ int i;
++ GdkFont *font;
+
+ //tlo ikony
+ gdk_gc_set_rgb_fg_color(gc, &clwhite);
+@@ -118,9 +120,6 @@
+ if ((icon2_img != NULL) && ((blink_no % 2) == 1))
+ gdk_draw_pixbuf(launch_pixmap, gc, icon2_img, 0, 0, icon2.x, icon2.y, icon2.width, icon2.height, GDK_RGB_DITHER_NONE, 0, 0);
+
+- int i;
+- GdkFont *font;
+-
+ //Wyswietl 3 nicki w kolorach zalenych od statusu
+ font = gdk_font_load("-misc-fixed-bold-r-normal-*-15-*-*-*-*-*-iso8859-2");
+ gdk_gc_set_rgb_fg_color(gc, &clred);
+@@ -350,6 +349,7 @@
+ //Funkcja startowa pluginu, exportowana,musi byc
+ void start_plugin()
+ {
++ XWMHints wmhints;
+ print_debug("%s : start\n", GGadu_PLUGIN_NAME);
+
+ //Etykietki
+@@ -397,7 +397,6 @@
+ redraw();
+
+ //Windowmaker hints - tu sprowadza okno do ikony
+- XWMHints wmhints;
+ wmhints.initial_state = WithdrawnState;
+ wmhints.flags = StateHint;
+ XSetWMHints(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(status_dockapp->window), &wmhints);
diff --git a/chat/gg2/patches/patch-ag b/chat/gg2/patches/patch-ag
new file mode 100644
index 00000000000..60a97282e1e
--- /dev/null
+++ b/chat/gg2/patches/patch-ag
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/jabber/jabber_plugin.c.orig Mon Jan 17 20:56:36 2005
++++ src/plugins/jabber/jabber_plugin.c Mon Jan 17 20:57:09 2005
+@@ -1443,8 +1443,9 @@
+
+ if (ggadu_config_var_get(jabber_handler, "autoconnect"))
+ {
++ GGaduStatusPrototype *sp;
+ print_debug("jabber: autoconneting");
+- GGaduStatusPrototype *sp = ggadu_find_status_prototype(p,JABBER_STATUS_AVAILABLE);
++ sp = ggadu_find_status_prototype(p,JABBER_STATUS_AVAILABLE);
+ jabber_change_status(sp);
+ }
+
diff --git a/chat/gg2/patches/patch-ah b/chat/gg2/patches/patch-ah
new file mode 100644
index 00000000000..b15ffb5f9a5
--- /dev/null
+++ b/chat/gg2/patches/patch-ah
@@ -0,0 +1,23 @@
+$NetBSD: patch-ah,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/jabber/jabber_login.c.orig Mon Jan 17 20:58:07 2005
++++ src/plugins/jabber/jabber_login.c Mon Jan 17 20:59:01 2005
+@@ -80,14 +80,14 @@
+
+ if (!jabber_data.connection || !lm_connection_is_open(jabber_data.connection))
+ {
+- print_debug("jabber: Connecting to %s with %s", server,jid);
+- jabber_data.connection = lm_connection_new(server);
+- lm_connection_set_keep_alive_rate(jabber_data.connection,30);
+-
+ /* proxy setting taken from EKG project */
+ gint jabber_proxy_enabled = 0;
+ gchar *jabber_proxy_host = NULL;
+ gint jabber_proxy_port;
++
++ print_debug("jabber: Connecting to %s with %s", server,jid);
++ jabber_data.connection = lm_connection_new(server);
++ lm_connection_set_keep_alive_rate(jabber_data.connection,30);
+
+ if (ggadu_config_var_check(jabber_handler, "proxy"))
+ {
diff --git a/chat/gg2/patches/patch-ai b/chat/gg2/patches/patch-ai
new file mode 100644
index 00000000000..cc27e9c438c
--- /dev/null
+++ b/chat/gg2/patches/patch-ai
@@ -0,0 +1,34 @@
+$NetBSD: patch-ai,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- src/plugins/ignore/ignore.c.orig Mon Jan 17 20:59:50 2005
++++ src/plugins/ignore/ignore.c Mon Jan 17 21:01:57 2005
+@@ -102,10 +102,12 @@
+ {
+ case GGADU_IGNORE_ADD_ID:
+ {
++ gchar *ignored_list_prev;
++ gchar *ignored_list_after;
+ GGaduContact *k = g_new0(GGaduContact, 1);
+ k->id = g_strdup(kv->value);
+- gchar *ignored_list_prev = ggadu_config_var_get(ignore_handler, "list");
+- gchar *ignored_list_after = NULL;
++ ignored_list_prev = ggadu_config_var_get(ignore_handler, "list");
++ ignored_list_after = NULL;
+
+ ignored_list_after = ggadu_add_ignored_contact(ignored_list_prev, k);
+ if (ignored_list_after)
+@@ -142,10 +144,12 @@
+ {
+ case GGADU_IGNORE_REMOVE_ID:
+ {
++ gchar *ignored_list_prev;
++ gchar *ignored_list_after;
+ GGaduContact *k = g_new0(GGaduContact, 1);
+ k->id = g_strdup(kv->value);
+- gchar *ignored_list_prev = ggadu_config_var_get(ignore_handler, "list");
+- gchar *ignored_list_after = NULL;
++ ignored_list_prev = ggadu_config_var_get(ignore_handler, "list");
++ ignored_list_after = NULL;
+
+ ignored_list_after = ggadu_remove_ignored_contact(ignored_list_prev, k);
+ if (ignored_list_after)
diff --git a/chat/gg2/patches/patch-aj b/chat/gg2/patches/patch-aj
new file mode 100644
index 00000000000..d07d224909e
--- /dev/null
+++ b/chat/gg2/patches/patch-aj
@@ -0,0 +1,30 @@
+$NetBSD: patch-aj,v 1.1 2005/01/17 20:15:28 kristerw Exp $
+
+--- contrib/gghist/gghist.c.orig Mon Jan 17 21:02:34 2005
++++ contrib/gghist/gghist.c Mon Jan 17 21:03:29 2005
+@@ -244,6 +244,8 @@
+ GtkWidget *field_s;
+ GtkWidget *base_field;
+ GtkTextBuffer *buf;
++ int fd;
++ int list[lines + 2];
+
+ gtk_init(&argc, &argv);
+
+@@ -257,7 +259,7 @@
+ #ifdef GGADU_DEBUG
+ g_print("Trying to open a file..\n");
+ #endif
+- int fd = open(argv[1], O_RDONLY);
++ fd = open(argv[1], O_RDONLY);
+
+ if (fd == -1) {
+ GtkWidget *dialog;
+@@ -279,7 +281,6 @@
+ g_print("Getting lines count..\n");
+ #endif
+ lines = lines_count(fd);
+- int list[lines + 2];
+
+
+ window = gtk_window_new(GTK_WINDOW_TOPLEVEL);