Commit d8f7ae1f authored by Jeroen Zwartepoorte's avatar Jeroen Zwartepoorte

*** empty log message ***

parent e2c8fcb6
2002-02-03 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* Makefile.am: Added symbol-browser-control back.
* configure.in: Idem.
* symbol-browser-control/Makefile.am: Idem.
* symbol-browser-control/factory.c: (on_format_update),
(on_control_set_frame), (on_control_destroy), (control_factory):
* symbol-browser-control/symbol-browser-cobject.c: Ported to gnome2.
(gnome_symbol_browser_cobject_class_init),
(gnome_symbol_browser_cobject_init),
(gnome_symbol_browser_cobject_destroy), (impl_open_directory),
(impl_clear), (impl_update), (impl_update_file),
(impl_remove_file), (impl_save),
(gnome_symbol_browser_cobject_new): Moved to BonoboXObject.
* symbol-browser-control/symbol-browser-cobject.h: Idem.
* symbol-browser-control/symbol-browser.c: Ported to GtkTreeView.
(gnome_symbol_browser_class_init), (gnome_symbol_browser_init),
(destroy_symbol_data_cb), (gsb_update_tree), (gsb_insert_nodes),
(get_sub_node), (gsb_sub_node_data_new), (gsb_tree_node_data_new),
(gsb_tree_node_data_free), (gsb_tree_node_data_copy),
(gsb_tree_node_data_get_type), (gsb_tree_node_set_pixbuf),
(gsb_tree_node_set_text), (row_activated_cb), (get_image_for_type),
(get_tag_type_name), (symbol_print), (gnome_symbol_browser_new),
(gnome_symbol_browser_get_type), (gnome_symbol_browser_destroy),
(gnome_symbol_browser_reset), (gnome_symbol_browser_open_dir),
(gnome_symbol_browser_clear),
(gnome_symbol_browser_get_event_source): Ported to GtkTreeView. Uses
BonoboEventSource now instead of events via PropertyBags.
* symbol-browser-control/symbol-browser.h: Added get_event_source
method.
* symbol-browser-control/test-symbol-browser.c: (load_file),
(open_or_save_dialog), (open_file_cb), (save_file_cb), (exit_cb),
(event_cb), (main): Ported to gnome2, displays message dialog when
user selects a symbol.
2002-02-02 Gustavo Girldez <gustavo.giraldez@gmx.net>
* gdl/gdl-dock-item.c (gdl_dock_item_lock, gdl_dock_item_unlock,
......
SUBDIRS = idl gdl po
SUBDIRS = idl gdl symbol-browser-control po
# SUBDIRS = idl gdl scintilla-control symbol-browser-control po intl
EXTRA_DIST = \
......
......@@ -254,6 +254,7 @@ AC_SUBST(GAL_LIBS)
PKG_CHECK_MODULES(GDL_DEPENDENCIES,
gtk+-2.0 >= $GTK_REQUIRED
libgnome-2.0 >= $GNOME_REQUIRED
libgnomeui-2.0 >= $GNOME_REQUIRED
libbonoboui-2.0 >= $BONOBOUI_REQUIRED
libglade-2.0 >= $LIBGLADE_REQUIRED)
AC_SUBST(GDL_DEPENDENCIES_CFLAGS)
......@@ -295,6 +296,8 @@ AC_SUBST(gnomelocaledir)
AC_OUTPUT([
Makefile
gdl/Makefile
symbol-browser-control/Makefile
symbol-browser-control/tagmanager/Makefile
idl/Makefile
po/Makefile.in
gdl.spec
......
......@@ -8,11 +8,11 @@ INCLUDES = \
-I$(top_srcdir)/gdl \
-DGNOME_DATADIR=\""$(datadir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(gnomelocaledir)"\" \
-DG_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
$(GNOME_INCLUDEDIR) \
$(OAF_CFLAGS) \
$(BONOBO_CFLAGS) \
$(BONOBOX_CFLAGS) \
$(GAL_CFLAGS)
$(GDL_DEPENDENCIES_CFLAGS) \
-DSYMBOL_BROWSER_SRCDIR=\""$(srcdir)"/\"
## Using exec binary for testing.
......@@ -20,18 +20,15 @@ INCLUDES = \
# libgnome-symbol-browser.la
#
#libgnome_symbol_browser_la_SOURCES = \
# symbol-browser.c\
# symbol-browser.h\
# symbol-browser-cobject.c\
# symbol-browser-cobject.h\
# factory.c
#
#libgnome_symbol_browser_la_LIBADD = \
# $(GNOME_LIBS) \
# $(GNOMEUI_LIBS) \
# $(BONOBO_LIBS) \
# $(BONOBOX_LIBS) \
# $(VFS_LIBS) \
# $(XML_LIBS) \
# ccview/libccview.la
# $(GDL_DEPENDENCIES_LIBS) \
# ../gdl/libgdl-1.la
bin_PROGRAMS = gnome-symbol-browser
......@@ -43,10 +40,8 @@ gnome_symbol_browser_SOURCES = \
factory.c
gnome_symbol_browser_LDADD = \
$(BONOBO_LIBS) \
$(BONOBOX_LIBS) \
../gdl/libgdl.la \
$(GAL_LIBS)\
$(GDL_DEPENDENCIES_LIBS) \
../gdl/libgdl-1.la \
-L$(srcdir)/tagmanager\
-lctags
......@@ -56,22 +51,18 @@ test_symbol_browser_SOURCES = \
test-symbol-browser.c
test_symbol_browser_LDADD = \
$(GNOME_LIBS) \
$(BONOBO_LIBS) \
$(BONOBOX_LIBS) \
../gdl/libgdl.la
$(GDL_DEPENDENCIES_LIBS) \
../gdl/libgdl-1.la
oaf_in_files = \
GNOME_Development_SymbolBrowser.oaf.in
serverdir = $(libdir)/bonobo/servers
server_in_files = GNOME_Development_SymbolBrowser.server.in
server_DATA = $(server_in_files:.server.in=.server)
oaf_DATA = $(oaf_in_files:.oaf.in=.oaf)
oafdir = $(datadir)/oaf
@INTLTOOL_SERVER_RULE@
@XML_I18N_MERGE_OAF_RULE@
uidir = $(datadir)/gnome/ui
uidir = $(datadir)/gnome-2.0/ui
ui_DATA = gnome-symbol-browser.xml
EXTRA_DIST = $(oaf_in_files)\
$(oaf_DATA)\
$(ui_DATA)
EXTRA_DIST =
$(server_DATA) \
$(ui_DATA)
......@@ -19,32 +19,17 @@
*/
#include <config.h>
#include <gnome.h>
#include <bonobo.h>
#include <liboaf/liboaf.h>
#include <bonobo/bonobo-shlib-factory.h>
#include <bonobo-activation/bonobo-activation.h>
#include <gdl/gdl.h>
#include "symbol-browser.h"
#include "symbol-browser-cobject.h"
/* #define USE_SHARED_LIBRARY_COMPONENT */
enum
{
ARG_FILE,
ARG_LINE,
ARG_CLASS
};
#ifndef USE_SHARED_LIBRARY_COMPONENT
static BonoboGenericFactory *factory;
static gint active_controls = 0;
/*#define USE_SHARED_LIBRARY_COMPONENT*/
#endif
static void on_format_update(GtkWidget* w, BonoboControl* control)
static void on_format_update (GtkWidget *widget,
BonoboControl *control)
{
/*
GnomeSymbolBrowser* symbol_browser = GNOME_SYMBOL_BROWSER(
......@@ -53,286 +38,97 @@ static void on_format_update(GtkWidget* w, BonoboControl* control)
*/
}
static BonoboUIVerb verbs[] =
{
static BonoboUIVerb verbs[] = {
BONOBO_UI_UNSAFE_VERB ("FormatUpdate", on_format_update),
BONOBO_UI_VERB_END
};
typedef struct {
gchar* file;
glong line;
} ControlData;
static ControlData*
control_data_new (gchar* file, glong line)
{
ControlData* cd;
g_return_val_if_fail (file != NULL, NULL);
g_return_val_if_fail (line > -1, NULL);
cd = g_malloc (sizeof(ControlData));
cd->file = g_strdup(file);
cd->line = line;
return cd;
}
static void
control_data_destroy (ControlData* cd)
{
g_return_if_fail (cd != NULL);
if (cd->file) g_free (cd->file);
g_free (cd);
}
static void
get_prop (BonoboPropertyBag * bag, BonoboArg * arg, guint arg_id,
CORBA_Environment *ev, gpointer data)
{
ControlData* cd;
GtkObject* obj = data;
cd = gtk_object_get_data (obj, "ControlData");
switch (arg_id) {
case ARG_FILE:
if (cd && cd->file) {
BONOBO_ARG_SET_STRING (arg, cd->file);
} else {
BONOBO_ARG_SET_STRING (arg, "");
}
break;
case ARG_LINE:
if (cd) {
BONOBO_ARG_SET_LONG (arg, cd->line);
} else {
BONOBO_ARG_SET_LONG (arg, -1);
}
break;
default:
g_warning ("Unknow property queried with the control");
break;
}
}
static void
set_prop (BonoboPropertyBag * bag, const BonoboArg * arg, guint arg_id,
CORBA_Environment *ev, gpointer data)
{
switch (arg_id) {
case ARG_FILE:
break;
case ARG_LINE:
break;
default:
g_warning ("Unknow property set in the control");
}
}
static void
on_control_set_frame (BonoboControl *control,
gpointer data)
gpointer data)
{
Bonobo_UIContainer uic;
BonoboUIComponent *component;
if (bonobo_control_get_control_frame (control) == CORBA_OBJECT_NIL)
return;
uic = bonobo_control_get_remote_ui_container (control);
CORBA_Environment ev;
CORBA_exception_init (&ev);
bonobo_control_get_control_frame (control, &ev);
g_return_if_fail (!BONOBO_EX (&ev));
uic = bonobo_control_get_remote_ui_container (control, &ev);
g_return_if_fail (!BONOBO_EX (&ev));
component = bonobo_control_get_ui_component (control);
bonobo_ui_component_set_container (component, uic);
bonobo_ui_component_set_container (component, uic, &ev);
g_return_if_fail (!BONOBO_EX (&ev));
/* FIXME: Merge UI */
bonobo_ui_component_add_verb_list_with_data (component, verbs, control);
bonobo_ui_util_set_ui (component, GNOME_DATADIR,
"gnome-symbol-browser.xml",
"Gnome Symbol Browser");
}
static void
on_control_destroy (GtkObject *control, GnomeSymbolBrowser *symbol_browser)
{
#ifndef USE_SHARED_LIBRARY_COMPONENT
"Gnome Symbol Browser", &ev);
g_return_if_fail (!BONOBO_EX (&ev));
active_controls --;
if (active_controls)
return;
g_print ("Gnome symbol browser: factory now shutting down\n");
bonobo_object_unref (BONOBO_OBJECT (factory));
gtk_main_quit ();
#endif
gtk_object_destroy (GTK_OBJECT(symbol_browser));
}
static void
on_symbol_browser_go_to (GnomeSymbolBrowser* symbol_browser,
gchar* file, glong line, gpointer data)
{
GtkObject* obj;
BonoboPropertyBag* prop_bag;
BonoboArg *arg;
g_return_if_fail (data != NULL);
g_return_if_fail (GTK_IS_OBJECT(data));
obj = data;
prop_bag = gtk_object_get_data (obj, "PropertyBag");
g_return_if_fail (prop_bag != NULL);
g_return_if_fail (BONOBO_IS_PROPERTY_BAG(prop_bag));
if (file != NULL && line > -1) {
gtk_object_set_data_full (obj, "ControlData",
control_data_new(file, line),
(GtkDestroyNotify)control_data_destroy);
g_print ("Go to: %s:%ld\n", file, line);
arg = bonobo_arg_new (BONOBO_ARG_LONG);
BONOBO_ARG_SET_LONG(arg, line);
/* Notify listeners */
bonobo_property_bag_notify_listeners(prop_bag, "Line", arg, NULL);
}
CORBA_exception_free (&ev);
}
/* PropertyBag */
static void
property_bag_init(BonoboControl* control)
on_control_destroy (GtkObject *control,
GnomeSymbolBrowser *symbol_browser)
{
BonoboPropertyBag *pb;
BonoboArg *arg;
GtkWidget* symbol_browser;
GDL_TRACE_EXTRA ("Initializing property bag.");
symbol_browser = gtk_object_get_data(GTK_OBJECT(control), "SymbolBrowser");
pb = bonobo_property_bag_new (get_prop, set_prop, control);
bonobo_control_set_properties (control, pb);
gtk_object_set_data (GTK_OBJECT(control), "PropertyBag", pb);
arg = bonobo_arg_new (BONOBO_ARG_STRING);
BONOBO_ARG_SET_STRING (arg, "");
bonobo_property_bag_add (pb, "File", ARG_FILE,
BONOBO_ARG_STRING, arg,
"Current active file", 0);
CORBA_free (arg);
arg = bonobo_arg_new (BONOBO_ARG_LONG);
BONOBO_ARG_SET_LONG (arg, -1);
bonobo_property_bag_add (pb, "Line", ARG_LINE,
BONOBO_ARG_LONG, arg,
"Current Line number", 0);
CORBA_free (arg);
bonobo_object_unref (BONOBO_OBJECT (pb));
g_object_unref (symbol_browser);
}
static BonoboObject *
control_factory (BonoboGenericFactory *factory, gpointer closure)
control_factory (BonoboGenericFactory *factory,
const char *component_id,
gpointer closure)
{
BonoboControl *control;
GtkWidget *symbol_browser;
GnomeSymbolBrowserCObject *cobj;
GDL_TRACE_EXTRA("Creating a control");
#ifndef USE_SHARED_LIBRARY_COMPONENT
active_controls++;
BonoboEventSource *event_source;
#endif
/* We don't have container now. We will set it later.
* when the control frame is set
*/
symbol_browser = gnome_symbol_browser_new();
gtk_widget_show (symbol_browser);
control = bonobo_control_new (symbol_browser);
/* Create the control. */
symbol_browser = gnome_symbol_browser_new ();
gtk_widget_show_all (symbol_browser);
if (!control){
GDL_TRACE_EXTRA ("Unable to create Bonobo Control.");
gtk_widget_unref (symbol_browser);
return NULL;
} else {
cobj = gnome_symbol_browser_cobject_new (
GNOME_SYMBOL_BROWSER(symbol_browser));
gtk_object_set_data (GTK_OBJECT (control), "SymbolBrowser", symbol_browser);
gtk_object_set_data (GTK_OBJECT (control), "SymbolBrowserCObject", cobj);
bonobo_object_add_interface (BONOBO_OBJECT (control),
BONOBO_OBJECT (cobj));
/* Initialize property bag */
property_bag_init(control);
/* UI initialization takes place when the control frame is set */
gtk_signal_connect (GTK_OBJECT (control), "set_frame",
GTK_SIGNAL_FUNC (on_control_set_frame), symbol_browser);
gtk_signal_connect (GTK_OBJECT (control), "destroy",
GTK_SIGNAL_FUNC (on_control_destroy), symbol_browser);
gtk_signal_connect (GTK_OBJECT (symbol_browser), "go_to",
GTK_SIGNAL_FUNC (on_symbol_browser_go_to), control);
GDL_TRACE_EXTRA ("Bonobo Control created successfully.");
return BONOBO_OBJECT (control);
}
}
control = bonobo_control_new (symbol_browser);
#ifndef USE_SHARED_LIBRARY_COMPONENT
cobj = gnome_symbol_browser_cobject_new (GNOME_SYMBOL_BROWSER (symbol_browser));
int
main (int argc, char **argv)
{
CORBA_ORB orb;
g_object_set_data (G_OBJECT (control), "SymbolBrowser", symbol_browser);
g_object_set_data (G_OBJECT (control), "SymbolBrowserCObject", cobj);
/* Initialize the i18n support */
bindtextdomain(PACKAGE, PACKAGE_LOCALE_DIR);
textdomain(PACKAGE);
/* intialize gnome */
gnome_init_with_popt_table ("GNOME_Development_SymbolBrowser_Control", "0.1",
argc, argv, oaf_popt_options, 0, NULL);
bonobo_object_add_interface (BONOBO_OBJECT (control),
BONOBO_OBJECT (cobj));
/* initialize CORBA, OAF and bonobo */
orb = oaf_init (argc,argv);
if (!orb)
g_error ("initializing orb failed");
if (!bonobo_init (orb, NULL, NULL))
g_error ("could not initialize Bonobo");
/* register EventSource interface for go-to event notification. */
event_source = gnome_symbol_browser_get_event_source (GNOME_SYMBOL_BROWSER (symbol_browser));
bonobo_object_add_interface (BONOBO_OBJECT (control),
BONOBO_OBJECT (event_source));
factory = bonobo_generic_factory_new ("OAFIID:GNOME_Development_SymbolBrowser_ControlFactory",
control_factory,
NULL);
if (factory == NULL)
g_error ("I could not register the Gnome Symbol Brwoser Factory.");
/* UI initialization takes place when the control frame is set */
g_signal_connect (control,
"set_frame",
G_CALLBACK (on_control_set_frame),
symbol_browser);
bonobo_main ();
g_signal_connect (control,
"destroy",
G_CALLBACK (on_control_destroy),
symbol_browser);
return 0;
return BONOBO_OBJECT (control);
}
#ifndef USE_SHARED_LIBRARY_COMPONENT
BONOBO_ACTIVATION_FACTORY ("OAFIID:GNOME_Development_SymbolBrowser_ControlFactory",
"Factory for the gnome symbol-browser", "0.1",
control_factory, NULL);
#else
BONOBO_OAF_SHLIB_FACTORY ("OAFIID:GNOME_Development_SymbolBrowser_ControlFactory",
"Gnome Symbol Browser Factory", control_factory, NULL);
BONOBO_ACTIVATION_SHLIB_FACTORY ("OAFIID:GNOME_Development_SymbolBrowser_ControlFactory",
"Factory for the gnome symbol-browser",
control_factory, NULL);
#endif /* USE_SHARED_LIBRARY_COMPONENT */
......@@ -19,181 +19,155 @@
*/
#include <bonobo.h>
#include "symbol-browser-cobject.h"
#include <gdl/gdl.h>
#include "symbol-browser-cobject.h"
static BonoboObjectClass *parent_class;
static POA_GNOME_Development_SymbolBrowser__epv epv;
static POA_GNOME_Development_SymbolBrowser__vepv vepv;
static BonoboXObjectClass *parent_class;
/* Forward declarations */
static void
gnome_symbol_browser_cobject_class_init(GnomeSymbolBrowserCObject* cobj_class);
static void gnome_symbol_browser_cobject_class_init (GnomeSymbolBrowserCObjectClass *klass);
static void gnome_symbol_browser_cobject_init (GnomeSymbolBrowserCObject *cobj);
static void gnome_symbol_browser_cobject_destroy (GtkObject *object);
static void impl_open_directory (PortableServer_Servant servant,
const CORBA_char *dir,
CORBA_Environment *ev);
static void impl_clear (PortableServer_Servant servant,
CORBA_Environment *ev);
static void impl_update (PortableServer_Servant servant,
CORBA_Environment *ev);
static void impl_update_file (PortableServer_Servant servant,
const CORBA_char *filename,
CORBA_Environment *ev);
static void impl_remove_file (PortableServer_Servant servant,
const CORBA_char *filename,
CORBA_Environment *ev);
static void impl_save (PortableServer_Servant servant,
CORBA_Environment *ev);
static void
gnome_symbol_browser_cobject_init (GnomeSymbolBrowserCObject* cobj);
/* Public functions */
GtkType
gnome_symbol_browser_cobject_get_type (void)
/* Private Functions */
static void
gnome_symbol_browser_cobject_class_init (GnomeSymbolBrowserCObjectClass *klass)
{
static GtkType type = 0;
if (!type)
{
GtkTypeInfo info = {
"GnomeSymbolBrowserCObject",
sizeof (GnomeSymbolBrowserCObject),
sizeof (GnomeSymbolBrowserCObjectClass),
(GtkClassInitFunc) gnome_symbol_browser_cobject_class_init,
(GtkObjectInitFunc) gnome_symbol_browser_cobject_init,
NULL,
NULL,
(GtkClassInitFunc) NULL
};
type = gtk_type_unique (bonobo_object_get_type(), &info);
}
return type;
}
GtkObjectClass *object_class;
POA_GNOME_Development_SymbolBrowser__epv *epv = &klass->epv;
GnomeSymbolBrowserCObject*
gnome_symbol_browser_cobject_new (GnomeSymbolBrowser *symbol_browser)
{
POA_GNOME_Development_SymbolBrowser *servant;
GNOME_Development_SymbolBrowser objref;
GnomeSymbolBrowserCObject* symbol_browser_cobject;
CORBA_Environment ev;
g_return_val_if_fail (symbol_browser != NULL, NULL);
g_return_val_if_fail (GNOME_IS_SYMBOL_BROWSER(symbol_browser), NULL);
symbol_browser_cobject =
gtk_type_new (gnome_symbol_browser_cobject_get_type());
servant = (POA_GNOME_Development_SymbolBrowser*) g_new0(BonoboObjectServant, 1);
servant->vepv = &vepv;
object_class = GTK_OBJECT_CLASS (klass);
parent_class = gtk_type_class (BONOBO_X_OBJECT_TYPE);
CORBA_exception_init (&ev);
POA_GNOME_Development_SymbolBrowser__init((PortableServer_Servant) servant, &ev);
if (ev._major != CORBA_NO_EXCEPTION) {
g_free (servant);
CORBA_exception_free (&ev);
gtk_object_destroy (GTK_OBJECT (symbol_browser_cobject));
return NULL;
}
CORBA_exception_free (&ev);
objref = bonobo_object_activate_servant (
BONOBO_OBJECT(symbol_browser_cobject), servant);
object_class->destroy = gnome_symbol_browser_cobject_destroy;
gtk_object_ref (GTK_OBJECT (symbol_browser));
symbol_browser_cobject->symbol_browser = GTK_WIDGET(symbol_browser);
bonobo_object_construct (BONOBO_OBJECT (symbol_browser_cobject), objref);
return symbol_browser_cobject;
};
/* EPV initialization */
epv->openDirectory = impl_open_directory;
epv->clear = impl_clear;
epv->update = impl_update;
epv->save = impl_save;
epv->updateFile = impl_update_file;
epv->removeFile = impl_remove_file;
}
/* Private Functions */
static void
gnome_symbol_browser_cobject_init (GnomeSymbolBrowserCObject* cobj)
gnome_symbol_browser_cobject_init (GnomeSymbolBrowserCObject *cobj)
{
/* Doesn't seem to have anything to do right now */
}
static void
cobject_destroy (GtkObject* obj)
gnome_symbol_browser_cobject_destroy (GtkObject *object)
{
GnomeSymbolBrowserCObject* cobj;
GnomeSymbolBrowserCObject *cobj;
g_return_if_fail (obj != NULL);
g_return_if_fail (GNOME_IS_SYMBOL_BROWSER_COBJECT(obj));
g_return_if_fail (object != NULL);
g_return_if_fail (GNOME_IS_SYMBOL_BROWSER_COBJECT (object));
cobj = GNOME_SYMBOL_BROWSER_COBJECT(obj);
gtk_object_unref (GTK_OBJECT(cobj->symbol_browser));
cobj = GNOME_SYMBOL_BROWSER_COBJECT (object);
g_object_unref (cobj->symbol_browser);
}
static void
impl_open_directory(PortableServer_Servant servant,
const CORBA_char *dir, CORBA_Environment* en)
impl_open_directory (PortableServer_Servant servant,
const CORBA_char *dir,
CORBA_Environment *ev)
{
GnomeSymbolBrowserCObject *cobj;
printf ("In function impl_open_directory()\n");
cobj = GNOME_SYMBOL_BROWSER_COBJECT(bonobo_object_from_servant (servant));
gnome_symbol_browser_open_dir(GNOME_SYMBOL_BROWSER(cobj->symbol_browser), (gchar*) dir);
cobj = GNOME_SYMBOL_BROWSER_COBJECT (bonobo_object_from_servant (servant));
gnome_symbol_browser_open_dir (GNOME_SYMBOL_BROWSER (cobj->symbol_browser),
(gchar*) dir);
}
static void
impl_clear(PortableServer_Servant servant,
CORBA_Environment* en)
impl_clear (PortableServer_Servant servant,
CORBA_Environment *ev)
{
GnomeSymbolBrowserCObject *cobj;
cobj = GNOME_SYMBOL_BROWSER_COBJECT(bonobo_object_from_servant (servant));
cobj = GNOME_SYMBOL_BROWSER_COBJECT (bonobo_object_from_servant (servant));
/* gnome_symbol_browser_clear(GNOME_SYMBOL_BROWSER(cobj->symbol_browser)); */
}
static void
impl_update(PortableServer_Servant servant,
CORBA_Environment* en)
impl_update (PortableServer_Servant servant,
CORBA_Environment *ev)
{
GnomeSymbolBrowserCObject *cobj;
cobj = GNOME_SYMBOL_BROWSER_COBJECT(bonobo_object_from_servant (servant));
cobj = GNOME_SYMBOL_BROWSER_COBJECT (bonobo_object_from_servant (servant));
/* gnome_symbol_browser_update(GNOME_SYMBOL_BROWSER(cobj->symbol_browser)); */
}
static void
impl_update_file(PortableServer_Servant servant,
const CORBA_char* filename, CORBA_Environment* en)
impl_update_file (PortableServer_Servant servant,
const CORBA_char *filename,
CORBA_Environment *ev)
{
GnomeSymbolBrowserCObject *cobj;
cobj = GNOME_SYMBOL_BROWSER_COBJECT(bonobo_object_from_servant (servant));
cobj = GNOME_SYMBOL_BROWSER_COBJECT (bonobo_object_from_servant (servant));
/* gnome_symbol_browser_update_file(GNOME_SYMBOL_BROWSER(cobj->symbol_browser),
(gchar*)filename); */
}
static void
impl_remove_file(PortableServer_Servant servant,
const CORBA_char* filename, CORBA_Environment* en)
impl_remove_file (PortableServer_Servant servant,
const CORBA_char *filename,
CORBA_Environment *ev)
{
GnomeSymbolBrowserCObject *cobj;
cobj = GNOME_SYMBOL_BROWSER_COBJECT(bonobo_object_from_servant (servant));
cobj = GNOME_SYMBOL_BROWSER_COBJECT (bonobo_object_from_servant (servant));
/* gnome_symbol_browser_remove_file(GNOME_SYMBOL_BROWSER(cobj->symbol_browser),