[gnome-online-accounts/wip/rishi/fedora-provider: 2/6] owncloud: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/fedora-provider: 2/6] owncloud: Style fixes
- Date: Sun, 4 Aug 2019 22:42:16 +0000 (UTC)
commit 30197d6f354347ccfc523f61f8008825e39f4402
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Aug 4 23:01:42 2019 +0200
owncloud: Style fixes
src/goabackend/goaowncloudprovider.c | 86 ++++++++++++++++++------------------
1 file changed, 42 insertions(+), 44 deletions(-)
---
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index db6a2c60..29d461a8 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -312,6 +312,29 @@ ensure_credentials_sync (GoaProvider *provider,
/* ---------------------------------------------------------------------------------------------------- */
+typedef struct
+{
+ GCancellable *cancellable;
+
+ GtkDialog *dialog;
+ GMainLoop *loop;
+
+ GtkWidget *cluebar;
+ GtkWidget *cluebar_label;
+ GtkWidget *connect_button;
+ GtkWidget *progress_grid;
+
+ GtkWidget *uri;
+ GtkWidget *username;
+ GtkWidget *password;
+
+ gchar *account_object_path;
+
+ GError *error;
+} AddAccountData;
+
+/* ---------------------------------------------------------------------------------------------------- */
+
static void
add_entry (GtkWidget *grid,
gint row,
@@ -339,31 +362,6 @@ add_entry (GtkWidget *grid,
*out_entry = entry;
}
-/* ---------------------------------------------------------------------------------------------------- */
-
-typedef struct
-{
- GCancellable *cancellable;
-
- GtkDialog *dialog;
- GMainLoop *loop;
-
- GtkWidget *cluebar;
- GtkWidget *cluebar_label;
- GtkWidget *connect_button;
- GtkWidget *progress_grid;
-
- GtkWidget *uri;
- GtkWidget *username;
- GtkWidget *password;
-
- gchar *account_object_path;
-
- GError *error;
-} AddAccountData;
-
-/* ---------------------------------------------------------------------------------------------------- */
-
static gchar *
normalize_uri (const gchar *address, gchar **server)
{
@@ -465,25 +463,6 @@ on_uri_username_or_password_changed (GtkEditable *editable, gpointer user_data)
g_free (uri);
}
-static void
-show_progress_ui (GtkContainer *container, gboolean progress)
-{
- GList *children;
- GList *l;
-
- children = gtk_container_get_children (container);
- for (l = children; l != NULL; l = l->next)
- {
- GtkWidget *widget = GTK_WIDGET (l->data);
- gdouble opacity;
-
- opacity = progress ? 1.0 : 0.0;
- gtk_widget_set_opacity (widget, opacity);
- }
-
- g_list_free (children);
-}
-
static void
create_account_details_ui (GoaProvider *provider,
GtkDialog *dialog,
@@ -582,6 +561,25 @@ create_account_details_ui (GoaProvider *provider,
}
}
+static void
+show_progress_ui (GtkContainer *container, gboolean progress)
+{
+ GList *children;
+ GList *l;
+
+ children = gtk_container_get_children (container);
+ for (l = children; l != NULL; l = l->next)
+ {
+ GtkWidget *widget = GTK_WIDGET (l->data);
+ gdouble opacity;
+
+ opacity = progress ? 1.0 : 0.0;
+ gtk_widget_set_opacity (widget, opacity);
+ }
+
+ g_list_free (children);
+}
+
/* ---------------------------------------------------------------------------------------------------- */
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]