Commit 9ac57fc3 authored by Ramiro Estrugo's avatar Ramiro Estrugo Committed by Ramiro Estrugo
Browse files

Sort the sidebar panel names.

2000-07-05  Ramiro Estrugo  <ramiro@eazel.com>

* libnautilus-extensions/nautilus-global-preferences.c:
(compare_view_identifiers), (global_preferences_create_dialog):
 Sort the sidebar panel names.
parent c7e49a83
2000-07-05 Ramiro Estrugo <ramiro@eazel.com>
* libnautilus-extensions/nautilus-global-preferences.c:
(compare_view_identifiers), (global_preferences_create_dialog):
Sort the sidebar panel names.
2000-07-05 Ramiro Estrugo <ramiro@eazel.com>
* components/Makefile.am:
Dont install the currently broken components (websearch)
* components/help/Makefile.am:
* components/help/help-contents.oafinfo:
* components/help/help-factory.oafinfo:
* components/help/help-index.oafinfo:
* components/help/help-search.oafinfo:
* components/help/hyperbola.oafinfo:
Split the oafinfo for help components into pieces so we can
control which get intalled and which dont (like the broken onces)
* configure.in:
Fix a small dumb typo.
2000-07-05 J Shane Culpepper <pepper@eazel.com>
*
......
......@@ -35,6 +35,7 @@
#include "nautilus-glib-extensions.h"
#include "nautilus-file-utilities.h"
#include "nautilus-view-identifier.h"
#include "nautilus-string.h"
/* Constants */
#define GLOBAL_PREFERENCES_DIALOG_TITLE _("Nautilus Preferences")
......@@ -74,6 +75,21 @@ static void global_preferences_register_enum_with_defaults (const c
static GtkWidget *global_prefs_dialog = NULL;
static int
compare_view_identifiers (gconstpointer a, gconstpointer b)
{
NautilusViewIdentifier *idenfifier_a;
NautilusViewIdentifier *idenfifier_b;
g_assert (a != NULL);
g_assert (b != NULL);
idenfifier_a = (NautilusViewIdentifier*) a;
idenfifier_b = (NautilusViewIdentifier*) b;
return nautilus_strcmp (idenfifier_a->name, idenfifier_b->name);
}
/*
* Private stuff
*/
......@@ -157,6 +173,8 @@ global_preferences_create_dialog (void)
view_identifiers = global_preferences_get_sidebar_panel_view_identifiers ();
view_identifiers = g_list_sort (view_identifiers, compare_view_identifiers);
for (p = view_identifiers; p != NULL; p = p->next) {
identifier = (NautilusViewIdentifier *) (p->data);
......
......@@ -35,6 +35,7 @@
#include "nautilus-glib-extensions.h"
#include "nautilus-file-utilities.h"
#include "nautilus-view-identifier.h"
#include "nautilus-string.h"
/* Constants */
#define GLOBAL_PREFERENCES_DIALOG_TITLE _("Nautilus Preferences")
......@@ -74,6 +75,21 @@ static void global_preferences_register_enum_with_defaults (const c
static GtkWidget *global_prefs_dialog = NULL;
static int
compare_view_identifiers (gconstpointer a, gconstpointer b)
{
NautilusViewIdentifier *idenfifier_a;
NautilusViewIdentifier *idenfifier_b;
g_assert (a != NULL);
g_assert (b != NULL);
idenfifier_a = (NautilusViewIdentifier*) a;
idenfifier_b = (NautilusViewIdentifier*) b;
return nautilus_strcmp (idenfifier_a->name, idenfifier_b->name);
}
/*
* Private stuff
*/
......@@ -157,6 +173,8 @@ global_preferences_create_dialog (void)
view_identifiers = global_preferences_get_sidebar_panel_view_identifiers ();
view_identifiers = g_list_sort (view_identifiers, compare_view_identifiers);
for (p = view_identifiers; p != NULL; p = p->next) {
identifier = (NautilusViewIdentifier *) (p->data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment