changeset 14579:310a81ba302c

[gaim-migrate @ 17303] Remove a bunch of functions that are commented out because they can't work currently, they'll come back if I can get the actual Gtk2 perl stuff to not crash, but they were just taking up space and getting in my way (since they are removed already in my other tree). committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 18 Sep 2006 04:22:44 +0000
parents 60845d332ea6
children c37052cbb542
files gtk/plugins/perl/common/GtkBlist.xs gtk/plugins/perl/common/GtkConv.xs gtk/plugins/perl/common/GtkPlugin.xs gtk/plugins/perl/common/GtkPluginPref.xs gtk/plugins/perl/common/GtkPrefs.xs gtk/plugins/perl/common/GtkSavedStatuses.xs gtk/plugins/perl/common/GtkUtils.xs
diffstat 7 files changed, 0 insertions(+), 366 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/plugins/perl/common/GtkBlist.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkBlist.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,43 +1,5 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-
-void
-gaim_gtk_blist_make_buddy_menu(menu, buddy, sub)
-	Gtk::Widget menu
-	Gaim::Buddy buddy
-	gboolean sub
-*/
-
-/* This can't work at the moment since I don't have a typemap for Gdk::Pixbuf.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-
-GdkPixbuf
-gaim_gtk_blist_get_status_icon(node, size)
-	Gaim::BuddyList::Node node
-	Gaim::Status::IconSize size
-*/
-
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-
-void
-gaim_gtk_append_blist_node_proto_menu(menu, gc, node)
-	Gtk::Widget menu
-	Gaim::Connection gc
-	Gaim::BuddyList::Node node
-
-void
-gaim_gtk_append_blist_node_extended_menu(menu, node)
-	Gtk::Widget menu
-	Gaim::Connection gc
-	Gaim::BuddyList::Node node
-*/
-
 MODULE = Gaim::GtkUI::BuddyList  PACKAGE = Gaim::GtkUI::BuddyList  PREFIX = gaim_gtk_blist_
 PROTOTYPES: ENABLE
 
--- a/gtk/plugins/perl/common/GtkConv.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkConv.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,44 +1,5 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-guint
-gaim_gtk_conversations_fill_menu(menu, convs)
-	Gtk::Widget menu
-	SV *convs
-PREINIT:
-	GList *t_GL;
-	int i, t_len;
-PPCODE:
-	t_GL = NULL;
-	t_len = av_len((AV *)SvRV(convs));
-
-	for (i = 0; i < t_len; i++) {
-		STRLEN t_sl;
-		t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(convs), i, 0), t_sl));
-	}
-	gaim_gtk_conversations_fill_menu(menu, t_GL);
-*/
-
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-GdkPixbuf
-gaim_gtkconv_get_tab_icon(conv, small_icon)
-	Gaim::Conversation conv
-	gboolean small_icon
-*/
-
-/* This can't work at the moment since I don't have a typemap for gboolean *.
-int
-gaim_gtkconv_get_tab_at_xy(win, x, y, to_right)
-	Gaim::GtkUI::Conversation::Window win
-	int x
-	int y
-	gboolean * to_right
-*/
-
 MODULE = Gaim::GtkUI::Conversation  PACKAGE = Gaim::GtkUI::Conversation  PREFIX = gaim_gtkconv_
 PROTOTYPES: ENABLE
 
--- a/gtk/plugins/perl/common/GtkPlugin.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkPlugin.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,16 +1,5 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-Gtk::Widget
-gaim_gtk_plugin_get_config_frame(plugin)
-	Gaim::Plugin plugin
-*/
-
-MODULE = Gaim::GtkUI::Plugin  PACKAGE = Gaim::GtkUI::Plugin  PREFIX = gaim_gtk_plugin_
-PROTOTYPES: ENABLE
-
 MODULE = Gaim::GtkUI::Plugin  PACKAGE = Gaim::GtkUI::Plugins  PREFIX = gaim_gtk_plugins_
 PROTOTYPES: ENABLE
 
--- a/gtk/plugins/perl/common/GtkPluginPref.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkPluginPref.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,12 +1,4 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-Gtk::Widget
-gaim_gtk_plugin_pref_create_frame(frame)
-	Gaim::PluginPref::Frame frame
-*/
-
 MODULE = Gaim::GtkUI::PluginPref  PACKAGE = Gaim::GtkUI::PluginPref  PREFIX = gaim_gtk_plugin_pref_
 PROTOTYPES: ENABLE
--- a/gtk/plugins/perl/common/GtkPrefs.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkPrefs.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,72 +1,5 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-Gtk::Widget
-gaim_gtk_prefs_checkbox(title, key, page)
-	const char * title
-	const char * key
-	Gtk::Widget page
-
-Gtk::Widget
-gaim_gtk_prefs_labeled_spin_button(page, title, key, min, max, sg)
-	Gtk::Widget page
-	const gchar * title
-	const char * key
-	int min
-	int max
-	Gtk::Size::Group sg
-
-Gtk::Widget
-gaim_gtk_prefs_labeled_entry(page, title, key, sg)
-	Gtk::Widget page
-	const gchar * title
-	const char * key
-	Gtk::Size::Group sg
-
-TODO Test this carefully, I'm not at all confident in the loop.
-Gtk::Widget
-gaim_gtk_prefs_dropdown(page, title, type, key, ...)
-	Gtk::Widget page
-	const gchar * title
-	Gaim::Pref::Type type
-	const char * key
-PREINIT:
-	GList *t_GL;
-	int i;
-CODE:
-	t_GL = NULL;
-	for (i = 0; i < items; i++) {
-		if (type == GAIM_PREF_INT || type == GAIM_PREF_BOOLEAN) {
-			t_GL = g_list_append(t_GL, SvIV(ST(i+1)));
-		else {
-			t_GL = g_list_append(t_GL, SvPV(ST(i+1)));
-		}
-	}
-
-Gtk::Widget
-gaim_gtk_prefs_dropdown_from_list(page, title, type, key, menuitems)
-	Gtk::Widget page
-	const gchar * title
-	Gaim::Pref::Type type
-	const char * key
-	SV *menuitems
-PREINIT:
-	GList *t_GL;
-	int i, t_len;
-CODE:
-	t_GL = NULL;
-	t_len = av_len((AV *)SvRV(menuitems));
-
-	for ( i = 0; i < t_len; i++) {
-		STRLEN t_sl;
-		t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(menuitems), i, 0), t_sl));
-	RETVAL = gaim_gtk_prefs_dropdown_from_list(page, title, type, key, t_GL);
-OUTPUT:
-	RETVAL
-*/
-
 MODULE = Gaim::GtkUI::Prefs  PACKAGE = Gaim::GtkUI::Prefs  PREFIX = gaim_gtk_prefs_
 PROTOTYPES: ENABLE
 
--- a/gtk/plugins/perl/common/GtkSavedStatuses.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkSavedStatuses.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,16 +1,5 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
- * This also has a GCallback issue that I have no idea how to deal with,
- * though the core-perl typemap has a mapping for them.
-Gtk::Widget
-gaim_gtk_status_menu(status, callback)
-	Gaim::SavedStatus status
-	GCallback callback
-*/
-
 MODULE = Gaim::GtkUI::Status  PACKAGE = Gaim::GtkUI::Status  PREFIX = gaim_gtk_status_
 PROTOTYPES: ENABLE
 
--- a/gtk/plugins/perl/common/GtkUtils.xs	Mon Sep 18 03:17:11 2006 +0000
+++ b/gtk/plugins/perl/common/GtkUtils.xs	Mon Sep 18 04:22:44 2006 +0000
@@ -1,197 +1,5 @@
 #include "gtkmodule.h"
 
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-void
-gaim_setup_imhtml(imhtml)
-	Gtk::Widget imhtml
-
-Gtk::Widget
-gaim_gtk_create_imhtml(editable, imhtml_ret, toolbar_ret, sw_ret)
-	gboolean editable
-	GtkWidget ** imhtml_ret
-	GtkWidget ** toolbar_ret
-	GtkWidget ** sw_ret
-
-void
-gaim_gtk_toggle_sensitive(widget, to_toggle)
-	Gtk::Widget widget
-	Gtk::Widget to_toggle
-
-void
-gaim_gtk_set_sensitive_if_input(entry, dialog)
-	Gtk::Widget entry
-	Gtk::Widget dialog
-
-void
-gaim_gtk_toggle_sensitive_array(w, data)
-	Gtk::Widget w
-	GPtrArray data
-
-void
-gaim_gtk_toggle_showhide(widget, to_toggle)
-	Gtk::Widget widget
-	Gtk::Widget to_toggle
-
-void
-gaim_separator(menu)
-	Gtk::Widget menu
-
-Gtk::Widget
-gaim_new_item(menu, str)
-	Gtk::Widget menu
-	const char * str
-
-Gtk::Widget
-gaim_new_check_item(menu, str, sf, data, checked)
-	Gtk::Widget menu
-	const char * str
-	GtkSignalFunc sf
-	gpointer data
-	gboolean checked
-
-Gtk::Widget
-gaim_new_item_from_stock(menu, str, icon, sf, data, accel_key, accel_mods, mod)
-	Gtk::Widget menu
-	const char * str
-	const char * icon
-	GtkSignalFunc sf
-	gpointer data
-	guint accel_key
-	guint accel_mods
-	char * mod
-
-Gtk::Widget
-gaim_pixbuf_button_from_stock(text, icon, style)
-	const char * text
-	const char * icon
-	Gaim::ButtonOrientation style
-
-Gtk::Widget
-gaim_gtk_make_frame(parent, title)
-	Gtk::Widget parent
-	const char * title
-
-Gtk::Widget
-gaim_gtk_protocol_option_menu_new(id, cb, user_data)
-	const char * id
-	GCallback cb
-	gpointer user_data
-
-Gtk::Widget
-gaim_gtk_account_option_menu_new(default_account, show_all, cb, filter_func, user_data)
-	Gaim::Account account
-	gboolean show_all
-	GCallback cb
-	Gaim::Account::FilterFunc filter_func
-	gpointer user_data
-
-Gaim::Account
-gaim_gtk_account_option_menu_get_selected(optmenu)
-	Gtk::Widget optmenu
-
-void
-gaim_gtk_account_option_menu_set_selected(optmenu, account)
-	Gtk::Widget optmenu
-	Gaim::Account account
-
-void
-gaim_gtk_setup_screenname_autocomplete(entry, optmenu, all)
-	Gtk::Widget entry
-	Gtk::Widget optmenu
-	gboolean all
-
-gboolean
-gaim_gtk_check_if_dir(path, filesel)
-	const char * path
-	Gtk::FileSelection filesel
-
-void
-gaim_gtk_setup_gtkspell(textview)
-	Gtk::TextView textview
-
-void
-gaim_gtk_save_accels_cb(accel_group, arg1, arg2, arg3, data)
-	Gtk::AccelGroup accel_group
-	guint arg1
-	Gdk::ModifierType arg2
-	GClosure arg3
-	gpointer data
-*/
-
-/* TODO This needs GaimAccount **
-gboolean
-gaim_gtk_parse_x_im_contact(msg, all_accounts, ret_account, ret_protocol, ret_username, ret_alias)
-	const char * msg
-	gboolean all_accounts
-	Gaim::Account ret_account
-	char ** ret_protocol
-	char ** ret_username
-	char ** ret_alias
-*/
-
-/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
- * I thought about using the one from libgtk2-perl but wasn't sure how to go
- * about doing that.
-void
-gaim_set_accessible_lable(w, l)
-	Gtk::Widget w
-	Gtk::Widget l
-
-void
-gaim_gtk_treeview_popup_menu_position_func(menu, x, y, push_in, user_data)
-	Gtk::Menu menu
-	gint x
-	gint y
-	gboolean push_in
-	gpointer user_data
-
-void
-gaim_dnd_file_manage(sd, account, who)
-	Gtk::SelectionData sd
-	Gaim::Account account
-	const char * who
-
-void
-gaim_gtk_buddy_icon_get_scale_size(buf, spec, width, height)
-	Gdk::Pixbuf buf
-	Gaim::Buddy::Icon::Spec spec
-	int width
-	int height
-
-Gdk::Pixbuf
-gaim_gtk_create_prpl_icon(account, scale_factor)
-	const Gaim::Account account
-	double scale_factor
-
-Gdk::Pixbuf
-gaim_gtk_create_prpl_icon_with_status(account, status_type, scale_factor)
-	const Gaim::Account account
-	Gaim::StatusType status_type
-	double scale_factor
-
-Gdk::Pixbuf
-gaim_gtk_create_gaim_icon_with_status(primitive, scale_factor)
-	Gaim::StatusPrimitive primitive
-	double scale_factor
-
-void
-gaim_gtk_append_menu_action(menu, act, gobject)
-	Gtk::Widget menu
-	Gaim::Menu::Action act
-	gpointer gobject
-
-void
-gaim_gtk_set_cursor(widget, cursor_type)
-	Gtk::Widget widget
-	Gdk::CursorType cursor_type
-
-void
-gaim_gtk_clear_cursor(widget)
-	Gtk::Widget widget
-*/
-
 MODULE = Gaim::GtkUI::Utils  PACKAGE = Gaim::GtkUI::Utils  PREFIX = gaim_gtk_utils_
 PROTOTYPES: ENABLE