ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/libirc frontend.c,1.1.1.1,1.2 gtkhtml.c,1.1.


From: Philip S Tellis <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/libirc frontend.c,1.1.1.1,1.2 gtkhtml.c,1.1.1.1,1.2
Date: Thu, 16 Jan 2003 04:51:05 -0500

Update of /cvsroot/ayttm/ayttm/libirc
In directory subversions:/tmp/cvs-serv15316/libirc

Modified Files:
        frontend.c gtkhtml.c 
Log Message:
changed code almost everywhere.  removed gtk dependencies in some places, 
changed gdk_input_* to eb_input_*, etc... see the ChangeLog.

Index: frontend.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/libirc/frontend.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- frontend.c  23 Dec 2002 22:04:27 -0000      1.1.1.1
+++ frontend.c  16 Jan 2003 09:51:02 -0000      1.2
@@ -603,7 +603,7 @@
         printf("%s has become %s.\n", nick, newnick);
 }
 
-void irc_callback_handler(gpointer data, gint source, GdkInputCondition 
condition)
+void irc_callback_handler(void *data, int source, eb_input_condition cond)
 {
         irc_callback(data);
 }
@@ -656,7 +656,7 @@
        irc_user_join_channel = libirc_test_user_join_channel;
 
        connection = irc_connect("irc.undernet.org", 6667);
-       gdk_input_add(connection->fd, GDK_INPUT_READ, irc_callback_handler, 
connection);
+       eb_input_add(connection->fd, EB_INPUT_READ, irc_callback_handler, 
connection);
        irc_signon(connection, "RobFlynn", NULL);
        open_chat(connection, "!ircstatus");
        gtk_main();

Index: gtkhtml.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/libirc/gtkhtml.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- gtkhtml.c   23 Dec 2002 22:04:29 -0000      1.1.1.1
+++ gtkhtml.c   16 Jan 2003 09:51:02 -0000      1.2
@@ -1285,7 +1285,7 @@
        html = GTK_HTML(widget);
 
        if (html->tooltip_timer != -1)
-              gtk_timeout_remove(html->tooltip_timer);
+              eb_timeout_remove(html->tooltip_timer);
        if (html->tooltip_window) {
               gtk_widget_destroy(html->tooltip_window);
               html->tooltip_window = NULL;
@@ -1328,7 +1328,7 @@
                        if (y < 0 || y > height) {
                                int diff;
                                if (html->timer == 0) {
-                                       html->timer = gtk_timeout_add(100,
+                                       html->timer = eb_timeout_add(100,
                                                                    
(GtkFunction)scroll_timeout,
                                                                    html);
                                        if (y < 0)
@@ -1376,12 +1376,12 @@
                                if (html->tooltip_hb != hb) {
                                        html->tooltip_hb = hb;
                                        if (html->tooltip_timer != -1)
-                                               
gtk_timeout_remove(html->tooltip_timer);
+                                               
eb_timeout_remove(html->tooltip_timer);
                                        if (html->tooltip_window) {
                                                
gtk_widget_destroy(html->tooltip_window);
                                                html->tooltip_window = NULL;
                                        }
-                                       html->tooltip_timer = 
gtk_timeout_add(HTML_TOOLTIP_DELAY, gtk_html_tooltip_timeout, html);
+                                       html->tooltip_timer = 
eb_timeout_add(HTML_TOOLTIP_DELAY, gtk_html_tooltip_timeout, html);
                                }
                                gdk_window_set_cursor(html->html_area, 
gdk_cursor_new(GDK_HAND2));
                                return TRUE;
@@ -1389,7 +1389,7 @@
                         urls = urls->next;
                }
                if (html->tooltip_timer != -1)
-                       gtk_timeout_remove(html->tooltip_timer);
+                       eb_timeout_remove(html->tooltip_timer);
                if (html->tooltip_window) {
                        gtk_widget_destroy(html->tooltip_window);
                        html->tooltip_window = NULL;
@@ -2154,12 +2154,12 @@
         gtk_signal_disconnect_by_data (GTK_OBJECT (html->vadj), html);
 
         if (html->timer) {
-                gtk_timeout_remove (html->timer);
+                eb_timeout_remove (html->timer);
                 html->timer = 0;
        }
 
        if (html->tooltip_timer) {
-               gtk_timeout_remove (html->tooltip_timer);
+               eb_timeout_remove (html->tooltip_timer);
                html->tooltip_timer = -1;
        }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]