summaryrefslogtreecommitdiff
path: root/thunar/thunar-location-bar.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <rgcjonas@gmail.com>2015-08-24 19:06:54 +0200
committerAndre Miranda <andreldm@xfce.org>2017-08-14 21:06:48 -0300
commitfc53ebd55aac4e080a3a948f84847b9cb0d5201d (patch)
tree58982a7287c0c23ee9172b0f0e2c27852fee9e66 /thunar/thunar-location-bar.h
parent32915a3b776d00427994382a15e2775ebb25a073 (diff)
downloadthunar-fc53ebd55aac4e080a3a948f84847b9cb0d5201d.tar.gz
Rework how location bar selection works
ThunarLocationBar now isn't an interface, but an actual widget hosting the different location bars. Unfortunately, there is still some code left in ThunarWindow, but this is expected to go away when GtkAction finally dies. On the plus side, we got rid of GtkUIManager inside the location bars and also nuked ThunarLocationDialog from orbit.
Diffstat (limited to 'thunar/thunar-location-bar.h')
-rw-r--r--thunar/thunar-location-bar.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/thunar/thunar-location-bar.h b/thunar/thunar-location-bar.h
index d8faebc0..0703cfb0 100644
--- a/thunar/thunar-location-bar.h
+++ b/thunar/thunar-location-bar.h
@@ -24,29 +24,20 @@
G_BEGIN_DECLS;
-typedef struct _ThunarLocationBarIface ThunarLocationBarIface;
+typedef struct _ThunarLocationBarClass ThunarLocationBarClass;
typedef struct _ThunarLocationBar ThunarLocationBar;
#define THUNAR_TYPE_LOCATION_BAR (thunar_location_bar_get_type ())
#define THUNAR_LOCATION_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_TYPE_LOCATION_BAR, ThunarLocationBar))
#define THUNAR_IS_LOCATION_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_TYPE_LOCATION_BAR))
-#define THUNAR_LOCATION_BAR_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), THUNAR_TYPE_LOCATION_BAR, ThunarLocationBarIface))
+#define THUNAR_LOCATION_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_TYPE_LOCATION_BAR, ThunarLocationBarClass))
-struct _ThunarLocationBarIface
-{
- GTypeInterface __parent__;
- /* virtual methods */
- gboolean (*accept_focus) (ThunarLocationBar *location_bar,
- const gchar *initial_text);
- gboolean (*is_standalone) (ThunarLocationBar *location_bar);
-};
+GType thunar_location_bar_get_type (void) G_GNUC_CONST;
-GType thunar_location_bar_get_type (void) G_GNUC_CONST;
+GtkWidget *thunar_location_bar_new (void);
-gboolean thunar_location_bar_accept_focus (ThunarLocationBar *location_bar,
- const gchar *initial_text);
-gboolean thunar_location_bar_is_standalone (ThunarLocationBar *location_bar);
+void thunar_location_bar_request_entry (ThunarLocationBar *bar, const gchar *initial_text);
G_END_DECLS;