| 1135 G_OBJECT_CLASS(pidgin_account_editor_parent_class)->dispose(obj); |
1135 G_OBJECT_CLASS(pidgin_account_editor_parent_class)->dispose(obj); |
| 1136 } |
1136 } |
| 1137 |
1137 |
| 1138 static void |
1138 static void |
| 1139 pidgin_account_editor_init(PidginAccountEditor *editor) { |
1139 pidgin_account_editor_init(PidginAccountEditor *editor) { |
| 1140 GtkCssProvider *css_provider = NULL; |
|
| 1141 GtkStyleContext *context = NULL; |
|
| 1142 GtkWidget *widget = GTK_WIDGET(editor); |
1140 GtkWidget *widget = GTK_WIDGET(editor); |
| 1143 |
1141 |
| 1144 gtk_widget_init_template(widget); |
1142 gtk_widget_init_template(widget); |
| 1145 |
|
| 1146 css_provider = gtk_css_provider_new(); |
|
| 1147 gtk_css_provider_load_from_resource(css_provider, |
|
| 1148 "/im/pidgin/Pidgin3/Accounts/entry.css"); |
|
| 1149 |
|
| 1150 context = gtk_widget_get_style_context(GTK_WIDGET(editor)); |
|
| 1151 gtk_style_context_add_provider(context, |
|
| 1152 GTK_STYLE_PROVIDER(css_provider), |
|
| 1153 GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); |
|
| 1154 |
|
| 1155 g_clear_object(&css_provider); |
|
| 1156 |
1143 |
| 1157 pidgin_account_editor_proxy_type_changed_cb(NULL, NULL, editor); |
1144 pidgin_account_editor_proxy_type_changed_cb(NULL, NULL, editor); |
| 1158 } |
1145 } |
| 1159 |
1146 |
| 1160 static void |
1147 static void |