diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-24 06:47:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-24 07:32:40 +0800 |
commit | d2bf13d734424b12f3a92791624aa637b11c8500 (patch) | |
tree | 032675c74bd67ff8867cfed81ee6a5531683a308 /calendar | |
parent | d9126cd9470657460f623d55bb558a6868700c7e (diff) | |
download | gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.tar gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.tar.gz gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.tar.bz2 gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.tar.lz gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.tar.xz gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.tar.zst gsoc2013-evolution-d2bf13d734424b12f3a92791624aa637b11c8500.zip |
EUrlEntry: Replace button with clickable inline icon.
Replace the big, bulky "open URL" button with a clickable icon directly
in the text entry field. This saves precious vertical space, especially
in the contact editor.
Also remove e_url_entry_get_entry() since EUrlEntry now IS a GtkEntry.
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index fcc00fae5d..7971bfbe2c 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -268,7 +268,6 @@ clear_widgets (TaskPage *tpage) { TaskPagePrivate *priv = tpage->priv; CompEditor *editor; - GtkWidget *entry; editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (tpage)); @@ -292,8 +291,7 @@ clear_widgets (TaskPage *tpage) e_dialog_combo_box_set (priv->priority_combo, PRIORITY_UNDEFINED, priority_map); gtk_spin_button_set_value (GTK_SPIN_BUTTON (priv->percent_complete), 0); - entry = e_url_entry_get_entry (E_URL_ENTRY (priv->web_page_entry)); - gtk_entry_set_text (GTK_ENTRY (entry), ""); + gtk_entry_set_text (GTK_ENTRY (priv->web_page_entry), ""); } static gboolean @@ -349,7 +347,6 @@ sensitize_widgets (TaskPage *tpage) ECalClient *client; GtkActionGroup *action_group; GtkAction *action; - GtkWidget *entry; gboolean read_only, sens = TRUE, sensitize; editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (tpage)); @@ -400,8 +397,8 @@ sensitize_widgets (TaskPage *tpage) gtk_widget_set_sensitive (priv->percent_complete, !read_only); gtk_widget_set_sensitive (priv->classification_combo, !read_only); - entry = e_url_entry_get_entry (E_URL_ENTRY (priv->web_page_entry)); - gtk_editable_set_editable (GTK_EDITABLE (entry), !read_only); + gtk_editable_set_editable ( + GTK_EDITABLE (priv->web_page_entry), !read_only); gtk_widget_set_sensitive (priv->organizer, !read_only); gtk_widget_set_sensitive (priv->add, (!read_only && sens)); @@ -918,7 +915,7 @@ task_page_fill_widgets (CompEditorPage *page, /* URL */ e_cal_component_get_url (comp, &url); - gtk_entry_set_text (GTK_ENTRY (e_url_entry_get_entry (E_URL_ENTRY (priv->web_page_entry))), url ? url : ""); + gtk_entry_set_text (GTK_ENTRY (priv->web_page_entry), url ? url : ""); sensitize_widgets (tpage); @@ -1218,7 +1215,7 @@ task_page_fill_component (CompEditorPage *page, } /* URL. */ - text = gtk_entry_get_text (GTK_ENTRY (e_url_entry_get_entry (E_URL_ENTRY (priv->web_page_entry)))); + text = gtk_entry_get_text (GTK_ENTRY (priv->web_page_entry)); e_cal_component_set_url (comp, text); return TRUE; @@ -2554,7 +2551,7 @@ init_widgets (TaskPage *tpage) /* URL */ g_signal_connect_swapped ( - e_url_entry_get_entry (E_URL_ENTRY (priv->web_page_entry)), "changed", + priv->web_page_entry, "changed", G_CALLBACK (comp_editor_page_changed), tpage); action = comp_editor_get_action (editor, "view-time-zone"); |