[anjuta] message-view: Added a frame to make things look better
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] message-view: Added a frame to make things look better
- Date: Mon, 8 Jun 2009 06:09:41 -0400 (EDT)
commit 34e4e3c3bd024448c0c6c8fe61ead43073c1e20a
Author: Johannes Schmid <jhs gnome org>
Date: Mon Jun 8 12:08:22 2009 +0200
message-view: Added a frame to make things look better
---
.gitignore | 26 +-------------------------
plugins/message-view/anjuta-msgman.c | 15 ++++++++++-----
2 files changed, 11 insertions(+), 30 deletions(-)
diff --git a/.gitignore b/.gitignore
index 7143d99..102d163 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@
/*~
/.*.swp
/.deps
+/.gitignore
/.libs
/GPATH
/GRTAGS
@@ -36,7 +37,6 @@
/intltool-update.in
/libtool
/po/*.mo
-/po/*.pot
/po/.intltool-merge-cache
/po/Makefile
/po/Makefile.in
@@ -107,27 +107,3 @@
/so_locations
/stamp-h1
/tags
-/libanjuta/interfaces/*.c
-/libanjuta/interfaces/*.h
-/plugins/*/*.plugin
-*marshallers*
-.anjuta/
-.anjuta_sym_db.db
-INSTALL
-aclocal.m4
-config.guess
-config.h.in
-config.sub
-depcomp
-gnome-doc-utils.make
-gtk-doc.make
-install-sh
-libanjuta/interfaces/Makefile.am
-ltmain.sh
-manuals/reference/libanjuta/tmpl/
-missing
-mkinstalldirs
-omf.make
-plugins/*/*.schemas
-xmldocs.make
-
diff --git a/plugins/message-view/anjuta-msgman.c b/plugins/message-view/anjuta-msgman.c
index 8a642a6..dd1bcbc 100644
--- a/plugins/message-view/anjuta-msgman.c
+++ b/plugins/message-view/anjuta-msgman.c
@@ -42,6 +42,7 @@ struct _AnjutaMsgmanPage
GtkWidget *label;
GtkWidget *button;
GtkWidget *box;
+ GtkWidget *frame;
GtkWidget *close_button;
GtkWidget *close_icon;
};
@@ -187,9 +188,13 @@ anjuta_msgman_page_new (GtkWidget * view, const gchar * name,
page->box = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX(page->box), page->button, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX(page->box), page->close_button, FALSE, FALSE, 0);
+
+ page->frame = gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME(page->frame),
+ GTK_SHADOW_OUT);
+ gtk_container_add (GTK_CONTAINER (page->frame), page->box);
-
- gtk_widget_show_all (page->box);
+ gtk_widget_show_all (page->frame);
return page;
}
@@ -197,7 +202,7 @@ anjuta_msgman_page_new (GtkWidget * view, const gchar * name,
static void
anjuta_msgman_page_destroy (AnjutaMsgmanPage * page)
{
- gtk_widget_destroy (page->box);
+ gtk_widget_destroy (page->frame);
g_free (page);
}
@@ -279,7 +284,7 @@ anjuta_msgman_instance_init (AnjutaMsgman * msgman)
msgman->priv = g_new0(AnjutaMsgmanPriv, 1);
msgman->priv->views = NULL;
msgman->priv->tab_popup = create_tab_popup_menu(msgman);
- msgman->priv->hbox = gtk_hbox_new (FALSE, 5);
+ msgman->priv->hbox = gtk_hbox_new (FALSE, 1);
msgman->priv->button_group = NULL;
g_signal_connect(GTK_OBJECT(msgman), "popup-menu",
G_CALLBACK(on_msgman_popup_menu), msgman);
@@ -413,7 +418,7 @@ anjuta_msgman_append_view (AnjutaMsgman * msgman, GtkWidget *mv,
page_num = gtk_notebook_append_page (GTK_NOTEBOOK (msgman), mv, NULL);
- gtk_box_pack_start (GTK_BOX(msgman->priv->hbox), page->box, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX(msgman->priv->hbox), page->frame, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (mv), "destroy",
G_CALLBACK (on_message_view_destroy), msgman);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]