Please help develop appmenu-indicator plugin

Aaron Lewis the.warl0ck.1989 at gmail.com
Sun Oct 16 07:08:54 CEST 2011


Hi,

Today i decided to make appmenu available for XFCE desktop , since
there's already one indicator plugin called "xfce4-indicator-plugin" ,
so I started by modifying its source code , this application load *.so
modules in a specific directory , and i substituted this with a single
one , named "libappmenu.so"

Code modified for "indicator.c":
=================================================================
  /* load 'em */
  if (g_file_test(INDICATOR_DIR, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))) {
    GDir * dir = g_dir_open(INDICATOR_DIR, 0, NULL);

    const gchar * name;
    guint i, length;
    gboolean match = FALSE;

	length = g_strv_length (indicator->excluded_modules);
	while ((name = g_dir_read_name(dir)) != NULL) {
		if (g_strcmp0 (name, "libappmenu.so") == 0)
		{
			if (load_module(name, indicator->menu))
				indicators_loaded++;
			break;
		}
	}
	g_dir_close (dir);
  }

=================================================================

Huge output from xfce4-panel: http://pastebin.mozilla.org/1356559

I kept receive things like the following , i think it's what stunt my program:
Indicator-Appmenu-DEBUG: Unable to get MWM functions for: 96468996

It's loaded , but on menu shows up while accelerate keys like ALT+V works , and menu pops up.

Could anyone offer me a little hint ?

Thanks !

-- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://pgp.mit.edu/ )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E


More information about the Xfce4-dev mailing list