*
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
+
+#include <string.h>
+#include <stdlib.h>
+
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#include "ev-page-action.h"
#include "ev-page-cache.h"
#include "ev-page-action-widget.h"
#include "ev-marshal.h"
-#include <glib/gi18n.h>
-#include <gtk/gtkentry.h>
-#include <gtk/gtktoolitem.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkhbox.h>
-#include <string.h>
-#include <stdlib.h>
-
struct _EvPageActionPrivate
{
EvPageCache *page_cache;
{
EvPageActionWidget *proxy;
GtkWidget *hbox;
+ AtkObject *obj;
proxy = g_object_new (ev_page_action_widget_get_type (), NULL);
gtk_container_set_border_width (GTK_CONTAINER (proxy), 6);
gtk_box_set_spacing (GTK_BOX (hbox), 6);
proxy->entry = gtk_entry_new ();
+ obj = gtk_widget_get_accessible (proxy->entry);
+ atk_object_set_name (obj, "page-label-entry");
+
g_signal_connect(proxy->entry, "scroll-event",G_CALLBACK(page_scroll_cb),action);
gtk_widget_add_events(GTK_WIDGET(proxy->entry),GDK_BUTTON_MOTION_MASK);
gtk_entry_set_width_chars (GTK_ENTRY (proxy->entry), 5);
EvPageActionWidget *proxy;
proxy = EV_PAGE_ACTION_WIDGET (proxies->data);
- gtk_widget_grab_focus (proxy->entry);
+
+ if (GTK_WIDGET_MAPPED (GTK_WIDGET (proxy)))
+ gtk_widget_grab_focus (proxy->entry);
}
}