[anjal] Make icons look pretty
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Make icons look pretty
- Date: Tue, 26 May 2009 14:00:11 -0400 (EDT)
commit eba15925ce9dae5f163c1915f1d72c2b8ff88a6f
Author: Srinivasa Ragavan <sragavan novell com>
Date: Tue May 26 23:34:32 2009 +0530
Make icons look pretty
---
src/mail-shell.c | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/mail-shell.c b/src/mail-shell.c
index fb63298..4c6bc82 100644
--- a/src/mail-shell.c
+++ b/src/mail-shell.c
@@ -306,12 +306,16 @@ mail_shell_construct (MailShell *shell)
gtk_box_pack_start ((GtkBox *)priv->top_bar, priv->action_bar, FALSE, FALSE, 0);
gtk_widget_show (priv->action_bar);
- priv->new_mail = gtk_button_new_with_mnemonic (_("New email"));
+ /* priv->new_mail = gtk_button_new_with_mnemonic (_("New email")); */
+ priv->new_mail = gtk_button_new_with_mnemonic (NULL);
+ gtk_button_set_relief (priv->new_mail, GTK_RELIEF_NONE);
+
gtk_button_set_image ((GtkButton *)priv->new_mail, gtk_image_new_from_icon_name("mail-message-new", GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start ((GtkBox *)priv->top_bar, priv->new_mail, FALSE, FALSE, 0);
gtk_widget_show (priv->new_mail);
priv->check_mail = gtk_button_new ();
+ gtk_button_set_relief (priv->check_mail, GTK_RELIEF_NONE);
box = gtk_hbox_new (FALSE, 0);
tmp = e_spinner_new_spinning_small_shown();
gtk_widget_hide(tmp);
@@ -321,9 +325,9 @@ mail_shell_construct (MailShell *shell)
gtk_widget_show(tmp);
g_object_set_data (priv->check_mail, "icon", tmp);
gtk_box_pack_start ((GtkBox *)box, tmp, FALSE, FALSE, 0);
- tmp = gtk_label_new_with_mnemonic (_("Check _email"));
+ /* tmp = gtk_label_new_with_mnemonic (_("Check _email"));
gtk_widget_show(tmp);
- gtk_box_pack_start ((GtkBox *)box, tmp, FALSE, FALSE, 2);
+ gtk_box_pack_start ((GtkBox *)box, tmp, FALSE, FALSE, 2);*/
gtk_container_add (priv->check_mail, box);
gtk_widget_show(box);
gtk_box_pack_start ((GtkBox *)priv->top_bar, priv->check_mail, FALSE, FALSE, 0);
@@ -355,12 +359,19 @@ mail_shell_construct (MailShell *shell)
// priv->settings = gtk_button_new_with_mnemonic (_("Settings"));
priv->settings = gtk_button_new_with_mnemonic (NULL);
+ gtk_button_set_relief (priv->settings, GTK_RELIEF_NONE);
+
gtk_button_set_image ((GtkButton *)priv->settings, gtk_image_new_from_icon_name("preferences-system", GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start ((GtkBox *)priv->option_bar, priv->settings, FALSE, FALSE, 6);
gtk_widget_show (priv->settings);
g_signal_connect (priv->settings, "clicked", G_CALLBACK (settings_btn_clicked), shell);
- priv->quit = gtk_tool_button_new_from_stock ("gtk-close");
+ priv->quit = gtk_button_new ();
+ tmp = gtk_image_new_from_icon_name("gtk-close", GTK_ICON_SIZE_BUTTON);
+ gtk_widget_show (tmp);
+ gtk_container_add (priv->quit, tmp);
+ gtk_button_set_relief (priv->quit, GTK_RELIEF_NONE);
+
// gtk_tool_button_set_icon_widget ((GtkButton *)priv->quit, gtk_image_new_from_icon_name("gtk-close", GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start ((GtkBox *)priv->option_bar, priv->quit, FALSE, FALSE, 0);
gtk_widget_show (priv->quit);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]