aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-10 08:15:46 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-10 08:15:46 +0800
commit8aeb5d203460e590bde98da12c00443ae4d2e5e0 (patch)
treedb65a21088bde22b9d740e88269e186a350e3cad /shell/e-shortcuts-view.c
parent702df809d271132488f806d37f186e47a344a615 (diff)
downloadgsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.tar
gsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.tar.gz
gsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.tar.bz2
gsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.tar.lz
gsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.tar.xz
gsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.tar.zst
gsoc2013-evolution-8aeb5d203460e590bde98da12c00443ae4d2e5e0.zip
Cast the toplevel to be passed to `e_request_string()' to GtkWindow, not
* e-shortcuts-view.c (show_new_group_dialog): Cast the toplevel to be passed to `e_request_string()' to GtkWindow, not GtkWidget. Also, remove unused variables. (get_efolder_from_shortcut): Constify @item_url. (get_storage_set_path_from_uri): Removed. * evolution-shell-component.c (destroy): `p' shall be a GList, not a GSList. svn path=/trunk/; revision=11857
Diffstat (limited to 'shell/e-shortcuts-view.c')
-rw-r--r--shell/e-shortcuts-view.c33
1 files changed, 2 insertions, 31 deletions
diff --git a/shell/e-shortcuts-view.c b/shell/e-shortcuts-view.c
index 53a83ff243..da007e339f 100644
--- a/shell/e-shortcuts-view.c
+++ b/shell/e-shortcuts-view.c
@@ -63,41 +63,12 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
-/* FIXME this should all be in the model. */
-
-static const char *
-get_storage_set_path_from_uri (const char *uri)
-{
- const char *colon;
-
- if (g_path_is_absolute (uri))
- return NULL;
-
- colon = strchr (uri, ':');
- if (colon == NULL || colon == uri || colon[1] == '\0')
- return NULL;
-
- if (! g_path_is_absolute (colon + 1))
- return NULL;
-
- if (g_strncasecmp (uri, "evolution", colon - uri) != 0)
- return NULL;
-
- return colon + 1;
-}
-
-
static void
show_new_group_dialog (EShortcutsView *view)
{
- GtkWidget *dialog;
- GtkWidget *label;
- GtkWidget *entry;
- GtkWidget *box;
char *group_name;
- int button_num;
- group_name = e_request_string (GTK_WIDGET (gtk_widget_get_toplevel (GTK_WIDGET (view))),
+ group_name = e_request_string (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view))),
_("Create new shortcut group"),
_("Group name:"),
NULL);
@@ -499,7 +470,7 @@ item_selected (EShortcutBar *shortcut_bar,
static EFolder *
get_efolder_from_shortcut (EShortcuts *shortcuts,
- char *item_url)
+ const char *item_url)
{
EFolderTypeRegistry *folder_type_registry;
EStorageSet *storage_set;