Skip to content

Commit

Permalink
reformat clang style
Browse files Browse the repository at this point in the history
  • Loading branch information
fossfreedom committed Aug 20, 2017
1 parent cb219fa commit d670765
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
24 changes: 11 additions & 13 deletions src/applet-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,12 @@ static void entry_added(IndicatorObject *io, IndicatorObjectEntry *entry, GtkWid
* budgie-desktop provides this
*/
if (entry->name_hint != NULL) {

int loop = 0;
while (blacklist_applets[loop]) {
if (strstr(entry->name_hint, blacklist_applets[loop]) != NULL) {
return;
}
loop++;
if (strstr(entry->name_hint, blacklist_applets[loop]) != NULL) {
return;
}
loop++;
}
g_debug("zzz %s", entry->name_hint);
} else {
Expand Down Expand Up @@ -303,16 +302,15 @@ static void entry_added(IndicatorObject *io, IndicatorObjectEntry *entry, GtkWid
menuitem);
}


/* for the appindicator (menuitem) we need to style it with budgie-menubar
* otherwise
* all submenus are transparent for the system theme
*/
context = gtk_widget_get_style_context(GTK_WIDGET(menuitem));
gtk_style_context_add_class(context, "budgie-menubar");
/* for the appindicator (menuitem) we need to style it with budgie-menubar
* otherwise
* all submenus are transparent for the system theme
*/
context = gtk_widget_get_style_context(GTK_WIDGET(menuitem));
gtk_style_context_add_class(context, "budgie-menubar");
context = gtk_widget_get_style_context(GTK_WIDGET(menubar));
gtk_style_context_remove_class(context, "menubar");
g_debug("zzz adding budgie-menubar");
g_debug("zzz adding budgie-menubar");

gtk_container_add(GTK_CONTAINER(menuitem), box);
gtk_widget_show(box);
Expand Down
9 changes: 4 additions & 5 deletions src/applet.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ static void appindicator_applet_dispose(GObject *object)
{
G_OBJECT_CLASS(appindicator_applet_parent_class)->dispose(object);
if (css_provider != NULL) {
g_object_unref (css_provider);
css_provider = NULL;
}
g_object_unref(css_provider);
css_provider = NULL;
}
}

/**
Expand Down Expand Up @@ -102,7 +102,6 @@ static void appindicator_applet_init(AppIndicatorApplet *self)

/* Show all of our things. */
gtk_widget_show_all(GTK_WIDGET(self));

}

void appindicator_applet_init_gtype(GTypeModule *module)
Expand All @@ -112,6 +111,6 @@ void appindicator_applet_init_gtype(GTypeModule *module)

BudgieApplet *appindicator_applet_new()
{
//return applet_construct(APPINDICATOR_TYPE_NATIVE_APPLET, uuid);
// return applet_construct(APPINDICATOR_TYPE_NATIVE_APPLET, uuid);
return g_object_new(APPINDICATOR_TYPE_NATIVE_APPLET, NULL);
}

0 comments on commit d670765

Please sign in to comment.