Compare commits

...

12 Commits

Author SHA1 Message Date
Carlos Soriano
7ebf9f82c2 gtkpathbar: remove event window
Seems is no longer necesary, it receives events anyway.
2015-08-13 09:25:46 +02:00
Carlos Soriano
a087639bd7 gtkpathbar: listen to file changes and update pathbar
It's something we have more or less for free in Nautilus
given that we have all the backend in NautilusFile.

Here we have to do it ourselves, but we fix a long old bug,
and one of the most confusing things of gtkpathbar.
2015-08-13 09:25:44 +02:00
Carlos Soriano
f1ec5a510b gtkpathbar: only unref cancelable when it exists 2015-08-04 17:13:07 +02:00
Carlos Soriano
89d19a3b9e gtkpathbar: avoid unrefing wrong memory 2015-08-04 17:13:07 +02:00
Carlos Soriano
9646af403e gtkpathbar: allow more destinations as root
Like the Home folder etc. Matching what Nautilus does.
2015-08-04 17:13:07 +02:00
Carlos Soriano
f101306ab7 gtkpathbar: match NautilusPathBar allocation
Since has proven to behave better than this one.
2015-08-04 17:13:06 +02:00
Carlos Soriano
91354cb8c8 gtkpathbar: remove unmap handling of sliders
Seems it's not necessary at all and NautilusPathbar is not
managing it either.
2015-08-04 17:12:12 +02:00
Carlos Soriano
749dd07e68 gtkpathbar: remove unfocus management
Seems it's not necesary, and NautilusPathbar is not using it.
2015-08-04 17:12:11 +02:00
Carlos Soriano
149d4d5522 gtkpathbar: adjust Nautilus slider timeouts 2015-08-04 17:11:26 +02:00
Carlos Soriano
8e0bfec11e gtkpathbar: tabs to spaces in scroll_timeout 2015-08-04 17:11:26 +02:00
Carlos Soriano
cca6081ec6 gtkpathbar: rename timeout for clarity 2015-08-04 17:11:25 +02:00
Carlos Soriano
f676560f8c gtkpathbar: remove use of gtk_file_system
Use the GFile operations instead and don't rely in some private
lib of gtk+ for those operations.
2015-07-24 18:20:02 +02:00
4 changed files with 887 additions and 614 deletions

View File

@@ -8438,8 +8438,6 @@ post_process_ui (GtkFileChooserWidget *impl)
g_list_free (cells);
/* Set the GtkPathBar file system backend */
_gtk_path_bar_set_file_system (GTK_PATH_BAR (impl->priv->browse_path_bar), impl->priv->file_system);
file = g_file_new_for_path ("/");
_gtk_path_bar_set_file (GTK_PATH_BAR (impl->priv->browse_path_bar), file, FALSE);
g_object_unref (file);

File diff suppressed because it is too large Load Diff

View File

@@ -19,6 +19,7 @@
#define __GTK_PATH_BAR_H__
#include "gtkcontainer.h"
#include "gtkbox.h"
#include "gtkfilesystem.h"
G_BEGIN_DECLS
@@ -37,14 +38,14 @@ typedef struct _GtkPathBarPrivate GtkPathBarPrivate;
struct _GtkPathBar
{
GtkContainer parent;
GtkBox parent;
GtkPathBarPrivate *priv;
};
struct _GtkPathBarClass
{
GtkContainerClass parent_class;
GtkBoxClass parent_class;
void (* path_clicked) (GtkPathBar *path_bar,
GFile *file,
@@ -54,8 +55,6 @@ struct _GtkPathBarClass
GDK_AVAILABLE_IN_ALL
GType gtk_path_bar_get_type (void) G_GNUC_CONST;
void _gtk_path_bar_set_file_system (GtkPathBar *path_bar,
GtkFileSystem *file_system);
void _gtk_path_bar_set_file (GtkPathBar *path_bar,
GFile *file,
gboolean keep_trail);

View File

@@ -13,8 +13,6 @@
</child>
<signal name="button-press-event" handler="gtk_path_bar_slider_button_press" swapped="no"/>
<signal name="button-release-event" handler="gtk_path_bar_slider_button_release" swapped="no"/>
<signal name="focus-out-event" handler="gtk_path_bar_slider_down_defocus" swapped="no"/>
<signal name="unmap" handler="on_slider_unmap" swapped="no"/>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -38,8 +36,6 @@
</child>
<signal name="button-press-event" handler="gtk_path_bar_slider_button_press" swapped="no"/>
<signal name="button-release-event" handler="gtk_path_bar_slider_button_release" swapped="no"/>
<signal name="focus-out-event" handler="gtk_path_bar_slider_up_defocus" swapped="no"/>
<signal name="unmap" handler="on_slider_unmap" swapped="no"/>
<child>
<object class="GtkImage">
<property name="visible">True</property>