aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/search/e-addressbook-search-dialog.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-13 02:36:44 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-13 02:36:44 +0800
commit4798532399252800f188c5431722fff02e6306eb (patch)
treec28450eebfc1e67fc171ea277e3fe998795e08f8 /addressbook/gui/search/e-addressbook-search-dialog.c
parente9faa62d2f9f6bae897c2f718ee25b5a78e159c7 (diff)
downloadgsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar
gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.gz
gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.bz2
gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.lz
gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.xz
gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.zst
gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.zip
A few small interface fixes.
2000-08-12 Christopher James Lahey <clahey@helixcode.com> * gui/search/Makefile.am, gui/search/e-addressbook-search-dialog.c, gui/search/e-addressbook-search-dialog.h: A few small interface fixes. * gui/component/Makefile.am: Link in the addressbook search dialog. svn path=/trunk/; revision=4780
Diffstat (limited to 'addressbook/gui/search/e-addressbook-search-dialog.c')
-rw-r--r--addressbook/gui/search/e-addressbook-search-dialog.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/addressbook/gui/search/e-addressbook-search-dialog.c b/addressbook/gui/search/e-addressbook-search-dialog.c
index e89eafa074..4acfd1585c 100644
--- a/addressbook/gui/search/e-addressbook-search-dialog.c
+++ b/addressbook/gui/search/e-addressbook-search-dialog.c
@@ -25,6 +25,7 @@
#include <e-util/e-canvas.h>
#include "e-addressbook-search-dialog.h"
#include "addressbook/gui/minicard/e-minicard-view-widget.h"
+#include "widgets/misc/e-scroll-frame.h"
static void e_addressbook_search_dialog_init (EAddressbookSearchDialog *widget);
static void e_addressbook_search_dialog_class_init (EAddressbookSearchDialogClass *klass);
static void e_addressbook_search_dialog_set_arg (GtkObject *o, GtkArg *arg, guint arg_id);
@@ -103,7 +104,7 @@ static void
button_press (GtkWidget *widget, EAddressbookSearchDialog *dialog)
{
char *query;
- gtk_widget_show(dialog->view);
+ gtk_widget_show(dialog->scrolled_window);
query = get_query();
gtk_object_set(GTK_OBJECT(dialog->view),
"query", query,
@@ -117,6 +118,8 @@ e_addressbook_search_dialog_init (EAddressbookSearchDialog *view)
GtkWidget *button;
GnomeDialog *dialog = GNOME_DIALOG (view);
+ gtk_window_set_policy(GTK_WINDOW(view), FALSE, TRUE, FALSE);
+
view->search = get_widget();
gtk_box_pack_start(GTK_BOX(dialog->vbox), view->search, TRUE, TRUE, 0);
gtk_widget_show(view->search);
@@ -128,7 +131,13 @@ e_addressbook_search_dialog_init (EAddressbookSearchDialog *view)
gtk_widget_show(button);
view->view = e_minicard_view_widget_new();
- gtk_box_pack_start(GTK_BOX(dialog->vbox), view->view, TRUE, TRUE, 0);
+ gtk_widget_show(view->view);
+
+ view->scrolled_window = e_scroll_frame_new(NULL, NULL);
+ e_scroll_frame_set_policy(E_SCROLL_FRAME(view->scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
+ gtk_container_add(GTK_CONTAINER(view->scrolled_window), view->view);
+
+ gtk_box_pack_start(GTK_BOX(dialog->vbox), view->scrolled_window, TRUE, TRUE, 0);
}
GtkWidget *