gtranslator r3462 - in branches/GOBJECT_WORK: . plugins/open-tran
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3462 - in branches/GOBJECT_WORK: . plugins/open-tran
- Date: Sat, 26 Jan 2008 21:25:58 +0000 (GMT)
Author: icq
Date: Sat Jan 26 21:25:58 2008
New Revision: 3462
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3462&view=rev
Log:
2008-01-26 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/open-tran/open-tran-plugin.c:
Added deactivate functionality.
Modified:
branches/GOBJECT_WORK/ChangeLog
branches/GOBJECT_WORK/plugins/open-tran/open-tran-plugin.c
Modified: branches/GOBJECT_WORK/plugins/open-tran/open-tran-plugin.c
==============================================================================
--- branches/GOBJECT_WORK/plugins/open-tran/open-tran-plugin.c (original)
+++ branches/GOBJECT_WORK/plugins/open-tran/open-tran-plugin.c Sat Jan 26 21:25:58 2008
@@ -29,6 +29,8 @@
#include "panel.h"
#define OPEN_TRAN_PLUGIN_ICON PIXMAPSDIR"/open-tran.png"
+#define WINDOW_DATA_KEY "GtranslatorOpenTranPluginWindowData"
+
#define GTR_OPEN_TRAN_PLUGIN_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), \
@@ -99,6 +101,10 @@
gtk_object_sink (GTK_OBJECT (image));
+ g_object_set_data(G_OBJECT(window),
+ WINDOW_DATA_KEY,
+ opentran);
+
gtk_widget_show_all(opentran);
}
@@ -106,22 +112,17 @@
impl_deactivate (GtranslatorPlugin *plugin,
GtranslatorWindow *window)
{
-/* GtranslatorPanel *panel;
-
- gtranslator_debug (DEBUG_PLUGINS);
-
- data = (WindowData *) g_object_get_data (G_OBJECT (window),
- WINDOW_DATA_KEY);
- g_return_if_fail (data != NULL);
+ GtranslatorPanel *panel;
+ GtkWidget *opentran;
- chartable = gtranslator_open_tran_panel_get_table
- (GTR_OPEN_TRAN_PANEL (data->panel));
- on_table_status_message (chartable, NULL, window);
+ opentran = (GtkWidget *) g_object_get_data (G_OBJECT (window),
+ WINDOW_DATA_KEY);
+ g_return_if_fail (opentran != NULL);
panel = gtranslator_window_get_side_panel (window);
- gtranslator_panel_remove_item (panel, data->panel);
+ gtranslator_panel_remove_item (panel, opentran);
- g_object_set_data (G_OBJECT (window), WINDOW_DATA_KEY, NULL);*/
+ g_object_set_data (G_OBJECT (window), WINDOW_DATA_KEY, NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]