[evolution-kolab] EPlugin: layouting fixes
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] EPlugin: layouting fixes
- Date: Tue, 21 Feb 2012 16:10:23 +0000 (UTC)
commit 26fd67c11d6097affd9932820a417245442176f6
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Tue Feb 21 16:07:47 2012 +0100
EPlugin: layouting fixes
* made "Kolab" context dialog non-resizable
* made permission edit sub-dialog resizable
* fixed some rubber length issues
src/eplugin/e-kolab-folder-permissions.c | 8 ++++++--
src/eplugin/e-kolab-plugin-ui.c | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/eplugin/e-kolab-folder-permissions.c b/src/eplugin/e-kolab-folder-permissions.c
index 36051ca..3641b65 100644
--- a/src/eplugin/e-kolab-folder-permissions.c
+++ b/src/eplugin/e-kolab-folder-permissions.c
@@ -95,11 +95,12 @@ kolab_folder_permissions_ui_edit_dialog_cb (KolabFolderPermUIData *uidata)
g_free (tmp_str);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
entry = gtk_combo_box_new_with_entry ();
+ gtk_combo_box_set_popup_fixed_width (GTK_COMBO_BOX (entry), FALSE);
uidata->widgets->edit_entry_box = entry;
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
btn = gtk_button_new_with_label (_("Retrieve..."));
uidata->widgets->edit_btn_retrieve = btn;
- gtk_box_pack_start (GTK_BOX (hbox), btn, TRUE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), btn, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (content), hbox);
frame = gtk_frame_new (_("Access Rights"));
@@ -166,6 +167,9 @@ kolab_folder_permissions_ui_create_tree_view (KolabFolderPermUIData *uidata)
tree_view = GTK_TREE_VIEW (gtk_tree_view_new_with_model (tree_model));
gtk_tree_view_set_grid_lines (tree_view, GTK_TREE_VIEW_GRID_LINES_BOTH);
gtk_tree_view_set_rubber_banding (tree_view, TRUE);
+ gtk_tree_view_columns_autosize (tree_view);
+ gtk_scrollable_set_vscroll_policy (GTK_SCROLLABLE (tree_view), GTK_SCROLL_NATURAL);
+ gtk_scrollable_set_hscroll_policy (GTK_SCROLLABLE (tree_view), GTK_SCROLL_NATURAL);
renderer = gtk_cell_renderer_text_new ();
g_object_set (renderer, "editable", FALSE, NULL);
diff --git a/src/eplugin/e-kolab-plugin-ui.c b/src/eplugin/e-kolab-plugin-ui.c
index 28b048e..16d44be 100644
--- a/src/eplugin/e-kolab-plugin-ui.c
+++ b/src/eplugin/e-kolab-plugin-ui.c
@@ -287,6 +287,7 @@ kolab_plugin_ui_action_kolab_properties_cb (GtkAction *action,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
+ gtk_window_set_resizable (GTK_WINDOW (uidata->widgets->dialog), FALSE);
uidata->widgets->selected_folder = \
kolab_plugin_ui_selected_folder_widget (action, shell_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]