Add missing page weights on some plugins
authorRicardo Mones <ricardo@mones.org>
Tue, 9 Jun 2015 07:44:16 +0000 (09:44 +0200)
committerRicardo Mones <ricardo@mones.org>
Tue, 9 Jun 2015 07:44:16 +0000 (09:44 +0200)
src/plugins/acpi_notifier/acpi_notifier.c
src/plugins/address_keeper/address_keeper_prefs.c
src/plugins/attachwarner/attachwarner_prefs.c
src/plugins/fetchinfo/fetchinfo_plugin_gtk.c
src/plugins/gdata/cm_gdata_prefs.c
src/plugins/libravatar/libravatar_prefs.c
src/plugins/notification/notification_prefs.c

index 319f914..b25b724 100644 (file)
@@ -800,6 +800,7 @@ void acpi_prefs_init(void)
        acpi_prefs_page.page.create_widget = acpi_prefs_create_widget_func;
        acpi_prefs_page.page.destroy_widget = acpi_prefs_destroy_widget_func;
        acpi_prefs_page.page.save_page = acpi_prefs_save_func;
+       acpi_prefs_page.page.weight = 40.0;
 
        prefs_gtk_register_page((PrefsPage *) &acpi_prefs_page);
        folder_hook_id = hooks_register_hook (FOLDER_ITEM_UPDATE_HOOKLIST, 
index 74fc19d..1b7a77c 100644 (file)
@@ -273,6 +273,7 @@ void address_keeper_prefs_init(void)
        addkeeperprefs_page.page.create_widget = addkeeper_prefs_create_widget_func;
        addkeeperprefs_page.page.destroy_widget = addkeeper_prefs_destroy_widget_func;
        addkeeperprefs_page.page.save_page = addkeeper_prefs_save_func;
+       addkeeperprefs_page.page.weight = 40.0;
 
        prefs_gtk_register_page((PrefsPage *) &addkeeperprefs_page);
 }
index e2fa395..cb144ba 100644 (file)
@@ -247,6 +247,7 @@ void attachwarner_prefs_init(void)
        attwarnerprefs_page.page.create_widget = attwarner_prefs_create_widget_func;
        attwarnerprefs_page.page.destroy_widget = attwarner_prefs_destroy_widget_func;
        attwarnerprefs_page.page.save_page = attwarner_prefs_save_func;
+       attwarnerprefs_page.page.weight = 40.0;
 
        prefs_gtk_register_page((PrefsPage *) &attwarnerprefs_page);
 }
index e82ecb2..b102732 100644 (file)
@@ -186,6 +186,7 @@ gint fetchinfo_gtk_init(void)
        fetchinfo_page.page.create_widget = fetchinfo_create_widget_func;
        fetchinfo_page.page.destroy_widget = fetchinfo_destroy_widget_func;
        fetchinfo_page.page.save_page = fetchinfo_save_func;
+       fetchinfo_page.page.weight = 40.0;
        
        prefs_gtk_register_page((PrefsPage *) &fetchinfo_page);
 
index 5098a5b..a2082fd 100644 (file)
@@ -150,6 +150,7 @@ void cm_gdata_prefs_init(void)
   gdata_page.page.create_widget = gdata_create_prefs_page;
   gdata_page.page.destroy_widget = gdata_destroy_prefs_page;
   gdata_page.page.save_page = gdata_save_prefs;
+  gdata_page.page.weight = 40.0;
   prefs_gtk_register_page((PrefsPage*) &gdata_page);
 }
 
index f3c3be4..af6c215 100644 (file)
@@ -457,6 +457,7 @@ void libravatar_prefs_init(void)
        libravatarprefs_page.page.create_widget = libravatar_prefs_create_widget_func;
        libravatarprefs_page.page.destroy_widget = libravatar_prefs_destroy_widget_func;
        libravatarprefs_page.page.save_page = libravatar_prefs_save_func;
+       libravatarprefs_page.page.weight = 40.0;
 
        prefs_gtk_register_page((PrefsPage *) &libravatarprefs_page);
 }
index 4feac1c..ab08baf 100644 (file)
@@ -404,6 +404,7 @@ void notify_gtk_init(void)
        notify_page.page.create_widget = notify_create_prefs_page;
        notify_page.page.destroy_widget = notify_destroy_prefs_page;
        notify_page.page.save_page = notify_save_prefs;
+       notify_page.page.weight = 40.0;
        prefs_gtk_register_page((PrefsPage*) &notify_page);
 
 #ifdef NOTIFICATION_HOTKEYS
@@ -419,6 +420,7 @@ void notify_gtk_init(void)
         hotkeys_page.page.create_widget = notify_create_hotkeys_page;
         hotkeys_page.page.destroy_widget = notify_destroy_hotkeys_page;
         hotkeys_page.page.save_page = notify_save_hotkeys;
+        hotkeys_page.page.weight = 10.0;
         prefs_gtk_register_page((PrefsPage*) &hotkeys_page);
     }
 #endif /* NOTIFICATION_HOTKEYS */
@@ -437,6 +439,7 @@ void notify_gtk_init(void)
                banner_page.page.create_widget = notify_create_banner_page;
                banner_page.page.destroy_widget = notify_destroy_banner_page;
                banner_page.page.save_page = notify_save_banner;
+               banner_page.page.weight = 20.0;
                prefs_gtk_register_page((PrefsPage*) &banner_page);
        }
 #endif /* NOTIFICATION_BANNER */
@@ -454,6 +457,7 @@ void notify_gtk_init(void)
                popup_page.page.create_widget = notify_create_popup_page;
                popup_page.page.destroy_widget = notify_destroy_popup_page;
                popup_page.page.save_page = notify_save_popup;
+               popup_page.page.weight = 30.0;
                prefs_gtk_register_page((PrefsPage*) &popup_page);
        }
 #endif /* NOTIFICATION_POPUP */
@@ -471,6 +475,7 @@ void notify_gtk_init(void)
                command_page.page.create_widget = notify_create_command_page;
                command_page.page.destroy_widget = notify_destroy_command_page;
                command_page.page.save_page = notify_save_command;
+               command_page.page.weight = 40.0;
                prefs_gtk_register_page((PrefsPage*) &command_page);
        }
 #endif /* NOTIFICATION_COMMAND */
@@ -488,6 +493,7 @@ void notify_gtk_init(void)
                lcdproc_page.page.create_widget = notify_create_lcdproc_page;
                lcdproc_page.page.destroy_widget = notify_destroy_lcdproc_page;
                lcdproc_page.page.save_page = notify_save_lcdproc;
+               lcdproc_page.page.weight = 50.0;
                prefs_gtk_register_page((PrefsPage*) &lcdproc_page);
        }
 #endif /* NOTIFICATION_LCDPROC */
@@ -505,6 +511,7 @@ void notify_gtk_init(void)
                trayicon_page.page.create_widget = notify_create_trayicon_page;
                trayicon_page.page.destroy_widget = notify_destroy_trayicon_page;
                trayicon_page.page.save_page = notify_save_trayicon;
+               trayicon_page.page.weight = 60.0;
                prefs_gtk_register_page((PrefsPage*) &trayicon_page);
        }
 #endif /* NOTIFICATION_TRAYICON */
@@ -522,6 +529,7 @@ void notify_gtk_init(void)
                indicator_page.page.create_widget = notify_create_indicator_page;
                indicator_page.page.destroy_widget = notify_destroy_indicator_page;
                indicator_page.page.save_page = notify_save_indicator;
+               indicator_page.page.weight = 70.0;
                prefs_gtk_register_page((PrefsPage*) &indicator_page);
        }
 #endif /* NOTIFICATION_INDICATOR */