You are not logged in.

#1 2014-04-29 16:35:59

rwilson
Member
Registered: 2013-10-15
Posts: 19

Theming nm-applet

Hi everyone,

I am trying to fix a theme I downloaded to have a nice homogeneity and I have a last problem. In the menu of nm-applet, the titles of the list of connections are not readable because of a colour problem ("Ethernet Network" and "Wi-Fi Networks").I have gone through the source code of nm-applet and I found where they are created as illustrated by the following piece of code from the source code ./src/applet.c (line #839 -> 854)

GtkWidget *
applet_menu_item_create_device_item_helper (NMDevice *device,
                                            NMApplet *applet,
                                            const gchar *text)
{
    GtkWidget *item;

    item = gtk_menu_item_new_with_mnemonic (text);
    gtk_widget_set_sensitive (item, FALSE);
#if GTK_CHECK_VERSION(2,90,7)
    g_signal_connect (item, "draw", G_CALLBACK (menu_title_item_draw), NULL);
#else
    g_signal_connect (item, "expose-event", G_CALLBACK (menu_title_item_expose), NULL);
#endif
    return item;
}

The connection titles are created via the line starting with "item = ". With the "GtkMenuShell GtkMenuItem GtkLabel" selector, I can change the colour of the text of the various connections but I can not get access to the title.

Do you know how to do that?

Offline

#2 2014-04-30 09:11:57

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: Theming nm-applet

Maybe change the background of the menu as a whole?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-05-01 09:08:10

rwilson
Member
Registered: 2013-10-15
Posts: 19

Re: Theming nm-applet

Thank you for the temporary work around.

I will continue to look for a complete fix.

Offline

Board footer

Powered by FluxBB