[network-manager-netbook: 2/3] Add two hacks to make it look more like dalston applets.
- From: Tambet Ingo <tambeti src gnome org>
- To: svn-commits-list gnome org
- Subject: [network-manager-netbook: 2/3] Add two hacks to make it look more like dalston applets.
- Date: Thu, 23 Jul 2009 09:01:37 +0000 (UTC)
commit ff8b2ca8d0be4c04f224617eb815f03b273beaf3
Author: Tambet Ingo <tambet gmail com>
Date: Thu Jul 23 11:48:37 2009 +0300
Add two hacks to make it look more like dalston applets.
src/main.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 8aa9723..1ea55f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,9 +13,11 @@ embedded_callback (GObject *plug,
gpointer user_data)
{
NmnApplet *applet = NMN_APPLET (user_data);
+ GtkWidget *w = GTK_WIDGET (plug);
gboolean embedded;
g_object_get (plug, "embedded", &embedded, NULL);
+ gtk_widget_modify_bg (w, GTK_STATE_NORMAL, >k_widget_get_style (w)->white);
nmn_applet_set_visible (applet, embedded);
}
@@ -28,6 +30,12 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
+ /* Force to the moblin theme */
+ gtk_settings_set_string_property (gtk_settings_get_default (),
+ "gtk-theme-name",
+ "Moblin-Netbook",
+ NULL);
+
applet = nmn_applet_new ();
plug = nmn_applet_get_plug (applet);
utils_set_main_widget (plug);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]