/pidgin/main: d6f30dcbfd7e: Fix indenting.
Elliott Sales de Andrade
qulogic at pidgin.im
Mon Nov 5 18:16:02 EST 2012
Changeset: d6f30dcbfd7e7647fb467e6cfa3a2400f2ac69a0
Author: Elliott Sales de Andrade <qulogic at pidgin.im>
Date: 2012-10-07 00:11 -0400
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/d6f30dcbfd7e
Description:
Fix indenting.
diffstat:
pidgin/gtkconv.c | 83 +++++++++++++++++++++++++++++--------------------------
1 files changed, 43 insertions(+), 40 deletions(-)
diffs (100 lines):
diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -10190,45 +10190,48 @@ gtkconv_tab_set_tip(GtkWidget *widget, G
}
#if GTK_CHECK_VERSION(3,0,0)
-static void set_default_tab_colors(GtkWidget *widget)
-{
- GString *str;
- GtkCssProvider *provider;
- GError *error = NULL;
- int iter;
-
- struct {
- const char *labelname;
- const char *color;
- } styles[] = {
- {"tab-label-typing", "#4e9a06"},
- {"tab-label-typed", "#c4a000"},
- {"tab-label-attention", "#006aff"},
- {"tab-label-unreadchat", "#cc0000"},
- {"tab-label-event", "#888a85"},
- {NULL, NULL}
- };
-
- str = g_string_new(NULL);
-
- for (iter = 0; styles[iter].labelname; iter++) {
- g_string_append_printf(str, "#%s {\n"
- " color: %s;\n"
- "}\n",
- styles[iter].labelname,
- styles[iter].color);
- }
-
- provider = gtk_css_provider_new();
-
- gtk_css_provider_load_from_data(provider, str->str, str->len, &error);
-
- gtk_style_context_add_provider(gtk_widget_get_style_context(widget),
- provider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-
- if (error)
- g_error_free(error);
- g_string_free(str, TRUE);
+static void
+set_default_tab_colors(GtkWidget *widget)
+{
+ GString *str;
+ GtkCssProvider *provider;
+ GError *error = NULL;
+ int iter;
+
+ struct {
+ const char *labelname;
+ const char *color;
+ } styles[] = {
+ {"tab-label-typing", "#4e9a06"},
+ {"tab-label-typed", "#c4a000"},
+ {"tab-label-attention", "#006aff"},
+ {"tab-label-unreadchat", "#cc0000"},
+ {"tab-label-event", "#888a85"},
+ {NULL, NULL}
+ };
+
+ str = g_string_new(NULL);
+
+ for (iter = 0; styles[iter].labelname; iter++) {
+ g_string_append_printf(str,
+ "#%s {\n"
+ " color: %s;\n"
+ "}\n",
+ styles[iter].labelname,
+ styles[iter].color);
+ }
+
+ provider = gtk_css_provider_new();
+
+ gtk_css_provider_load_from_data(provider, str->str, str->len, &error);
+
+ gtk_style_context_add_provider(gtk_widget_get_style_context(widget),
+ provider,
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+ if (error)
+ g_error_free(error);
+ g_string_free(str, TRUE);
}
#endif
@@ -10271,7 +10274,7 @@ pidgin_conv_window_add_gtkconv(PidginWin
/* Tab label. */
gtkconv->tab_label = gtk_label_new(tmp_lab = purple_conversation_get_title(conv));
#if GTK_CHECK_VERSION(3,0,0)
- set_default_tab_colors(gtkconv->tab_label);
+ set_default_tab_colors(gtkconv->tab_label);
#endif
gtk_widget_set_name(gtkconv->tab_label, "tab-label");
More information about the Commits
mailing list