comparison plugins/docklet/docklet.c @ 3551:cd938f18f3f8

[gaim-migrate @ 3626] In the interest of continued progress, I pulled what's usable out of my development tree and am committing it. Here, we have gotten rid of the plugins dialog and perl menu under Tools and put them both in preferences. Perl scripts now work like plugins--you have to load them explicitly (it will probe $prefix/lib/gaim and $HOME/.gaim for them) and you can unload them (although right now, this is entirely unreliable) Oh, and I broke all your perl scripts. Sorry about that. Don't try fixing them yet, though--I'm gonna make unloading single scripts more reliable tommorow. I should also finish Phase Two tommorow as well. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 26 Sep 2002 07:37:52 +0000
parents e9b2003ee562
children cf00549c53d7
comparison
equal deleted inserted replaced
3550:e9b2003ee562 3551:cd938f18f3f8
145 145
146 entry = gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL); 146 entry = gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
147 g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_prefs), NULL); 147 g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_prefs), NULL);
148 gtk_menu_append(GTK_MENU(menu), entry); 148 gtk_menu_append(GTK_MENU(menu), entry);
149 149
150 entry = gtk_menu_item_new_with_label(_("Plugins"));
151 g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_plugins), NULL);
152 gtk_menu_append(GTK_MENU(menu), entry);
153
154 entry = gtk_separator_menu_item_new(); 150 entry = gtk_separator_menu_item_new();
155 gtk_menu_append(GTK_MENU(menu), entry); 151 gtk_menu_append(GTK_MENU(menu), entry);
156 152
157 entry = gtk_menu_item_new_with_label(_("About")); 153 entry = gtk_menu_item_new_with_label(_("About"));
158 g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_about), NULL); 154 g_signal_connect(GTK_WIDGET(entry), "activate", G_CALLBACK(show_about), NULL);
329 325
330 gaim_signal_connect(handle, event_signon, gaim_signon, NULL); 326 gaim_signal_connect(handle, event_signon, gaim_signon, NULL);
331 gaim_signal_connect(handle, event_signoff, gaim_signoff, NULL); 327 gaim_signal_connect(handle, event_signoff, gaim_signoff, NULL);
332 gaim_signal_connect(handle, event_connecting, gaim_connecting, NULL); 328 gaim_signal_connect(handle, event_connecting, gaim_connecting, NULL);
333 gaim_signal_connect(handle, event_away, gaim_away, NULL); 329 gaim_signal_connect(handle, event_away, gaim_away, NULL);
330 gaim_signal_connect(handle, event_im_displayed_rcvd, gaim_im_recv, NULL);
334 gaim_signal_connect(handle, event_im_recv, gaim_im_recv, NULL); 331 gaim_signal_connect(handle, event_im_recv, gaim_im_recv, NULL);
335 gaim_signal_connect(handle, event_buddy_signon, gaim_buddy_signon, NULL); 332 gaim_signal_connect(handle, event_buddy_signon, gaim_buddy_signon, NULL);
336 gaim_signal_connect(handle, event_buddy_signoff, gaim_buddy_signoff, NULL); 333 gaim_signal_connect(handle, event_buddy_signoff, gaim_buddy_signoff, NULL);
337 gaim_signal_connect(handle, event_buddy_away, gaim_buddy_away, NULL); 334 gaim_signal_connect(handle, event_buddy_away, gaim_buddy_away, NULL);
338 gaim_signal_connect(handle, event_buddy_back, gaim_buddy_back, NULL); 335 gaim_signal_connect(handle, event_buddy_back, gaim_buddy_back, NULL);
376 g_signal_handlers_disconnect_by_func(GTK_WIDGET(docklet), G_CALLBACK(docklet_destroyed), NULL); 373 g_signal_handlers_disconnect_by_func(GTK_WIDGET(docklet), G_CALLBACK(docklet_destroyed), NULL);
377 gtk_widget_destroy(GTK_WIDGET(docklet)); 374 gtk_widget_destroy(GTK_WIDGET(docklet));
378 375
379 debug_printf("Docklet: removed\n"); 376 debug_printf("Docklet: removed\n");
380 } 377 }
378
379 struct gaim_plugin_description desc;
380 struct gaim_plugin_description *gaim_plugin_desc() {
381 desc.api_version = PLUGIN_API_VERSION;
382 desc.name = g_strdup("System Tray Docklet");
383 desc.version = g_strdup(VERSION);
384 desc.description = g_strdup("Interacts with a System Tray applet (in GNOME or KDE, for example) to display the current status of Gaim, allow fast access to commonly used functions, and to toggle display of the buddy list or login window.");
385 desc.authors = g_strdup("Robert McQueen &lt;robot101@debian.org>");
386 desc.url = g_strdup(WEBSITE);
387 return &desc;
388 }
389
381 390
382 const char *name() { 391 const char *name() {
383 return _("System Tray Docklet"); 392 return _("System Tray Docklet");
384 } 393 }
385 394