#include "midori.h"
+/* This is a private function */
+GtkWidget*
+midori_location_action_entry_for_proxy (GtkWidget* proxy);
+
typedef struct
{
const gchar* uri;
{
MidoriLocationAction* action;
GtkWidget* toolitem;
- GtkWidget* alignment;
GtkWidget* location_entry;
GtkWidget* entry;
GtkTreeModel* model;
action = g_object_new (MIDORI_TYPE_LOCATION_ACTION, NULL);
toolitem = gtk_action_create_tool_item (GTK_ACTION (action));
- alignment = gtk_bin_get_child (GTK_BIN (toolitem));
- location_entry = gtk_bin_get_child (GTK_BIN (alignment));
+ location_entry = midori_location_action_entry_for_proxy (toolitem);
entry = gtk_bin_get_child (GTK_BIN (location_entry));
model = gtk_combo_box_get_model (GTK_COMBO_BOX (location_entry));
{
MidoriLocationAction* action;
GtkWidget* toolitem;
- GtkWidget* alignment;
GtkWidget* location_entry;
GtkWidget* entry;
GtkTreeModel* model;
action = g_object_new (MIDORI_TYPE_LOCATION_ACTION, NULL);
toolitem = gtk_action_create_tool_item (GTK_ACTION (action));
- alignment = gtk_bin_get_child (GTK_BIN (toolitem));
- location_entry = gtk_bin_get_child (GTK_BIN (alignment));
+ location_entry = midori_location_action_entry_for_proxy (toolitem);
entry = gtk_bin_get_child (GTK_BIN (location_entry));
g_print ("...\n");
{
MidoriLocationAction* action;
GtkWidget* toolitem;
- GtkWidget* alignment;
GtkWidget* location_entry;
GtkWidget* entry;
GtkEntryCompletion* completion;
midori_location_action_thaw (action);
toolitem = gtk_action_create_tool_item (GTK_ACTION (action));
- alignment = gtk_bin_get_child (GTK_BIN (toolitem));
- location_entry = gtk_bin_get_child (GTK_BIN (alignment));
+ location_entry = midori_location_action_entry_for_proxy (toolitem);
entry = gtk_bin_get_child (GTK_BIN (location_entry));
completion = gtk_entry_get_completion (GTK_ENTRY (entry));
g_signal_connect (completion, "insert-prefix",