summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@gnome.org>2004-02-23 07:11:31 +0000
committerJonathan Blandford <jrb@src.gnome.org>2004-02-23 07:11:31 +0000
commitdecffc9d95b06407367a542379787ebe74f800c1 (patch)
treeec719bfbf0a6840a6cb3f2063910f1a9106a11c0 /gtk/gtkpathbar.h
parent09ed03e604243801f63739efb01723ef3c83d75b (diff)
downloadgtk+-decffc9d95b06407367a542379787ebe74f800c1.tar.gz
Use the GtkPathBar by default now.
Mon Feb 23 02:08:42 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserdefault.c (file_pane_create): Use the GtkPathBar by default now. * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the current path from the path. (gtk_path_bar_class_init): new signal (button_clicked_cb): emit the signal when we're selected. (gtk_path_bar_clear_buttons): Fix a crasher when we weren't clearing thr first_scrolled_button.
Diffstat (limited to 'gtk/gtkpathbar.h')
-rw-r--r--gtk/gtkpathbar.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h
index 0fcee4b761..04dd3b7ce0 100644
--- a/gtk/gtkpathbar.h
+++ b/gtk/gtkpathbar.h
@@ -21,6 +21,7 @@
#define __GTK_PATH_BAR__
#include "gtkcontainer.h"
+#include "gtkfilesystem.h"
G_BEGIN_DECLS
@@ -39,28 +40,29 @@ struct _GtkPathBar
{
GtkContainer parent;
- const char *path;
GList *button_list;
GList *first_scrolled_button;
+ GtkWidget *up_slider_button;
+ GtkWidget *down_slider_button;
gint16 slider_width;
gint16 spacing;
gint16 button_offset;
guint slider_visible : 1;
- GtkWidget *up_slider_button;
- GtkWidget *down_slider_button;
};
struct _GtkPathBarClass
{
GtkContainerClass parent_class;
- void (* path_clicked) (GtkPathBar *path_bar);
+ void (* path_clicked) (GtkPathBar *path_bar,
+ const gchar *file_path);
};
GType gtk_path_bar_get_type (void) G_GNUC_CONST;
-void gtk_path_bar_set_path (GtkPathBar *path_bar,
- const gchar *path);
-
+void gtk_path_bar_set_path (GtkPathBar *path_bar,
+ const GtkFilePath *file_path,
+ GtkFileSystem *file_system,
+ GError **error);
G_END_DECLS
#endif /* __GTK_PATH_BAR__ */