[gnome-contacts] Fixes: casting and debug sentences removed
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Fixes: casting and debug sentences removed
- Date: Wed, 24 Jul 2013 15:05:49 +0000 (UTC)
commit 693ee080bfb9913552046bcb47ca1df43764094c
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Tue Jul 23 01:02:31 2013 -0400
Fixes: casting and debug sentences removed
Minor size adjustments
src/contacts-accounts-list.vala | 13 +++++--------
src/contacts-app.vala | 3 +--
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/contacts-accounts-list.vala b/src/contacts-accounts-list.vala
index 5056c87..d98f461 100644
--- a/src/contacts-accounts-list.vala
+++ b/src/contacts-accounts-list.vala
@@ -35,7 +35,7 @@ public class Contacts.AccountsGrid : Frame {
accounts_view.set_activate_on_single_click (true);
var scrolled = new ScrolledWindow(null, null);
- scrolled.set_size_request (-1, 280);
+ scrolled.set_size_request (-1, 200);
scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
scrolled.set_shadow_type (ShadowType.NONE);
scrolled.add (accounts_view);
@@ -45,10 +45,10 @@ public class Contacts.AccountsGrid : Frame {
add_account_button = new Button.with_label (_("Add an Online Account"));
add_account_button.get_style_context ().add_class (STYLE_CLASS_RAISED);
- (add_account_button as Bin).get_child ().margin_left = 6;
- (add_account_button as Bin).get_child ().margin_right = 6;
- (add_account_button as Bin).get_child ().margin_top = 3;
- (add_account_button as Bin).get_child ().margin_bottom = 3;
+ add_account_button.get_child ().margin_left = 6;
+ add_account_button.get_child ().margin_right = 6;
+ add_account_button.get_child ().margin_top = 3;
+ add_account_button.get_child ().margin_bottom = 3;
add_account_button.clicked.connect (() => {
try {
Process.spawn_command_line_async ("gnome-control-center online-accounts");
@@ -92,9 +92,6 @@ public class Contacts.AccountsGrid : Frame {
}
var source = (persona_store as Edsf.PersonaStore).source;
var parent_source = eds_source_registry.ref_source (source.parent);
- stdout.printf ("store.id: %s\n", persona_store.id);
- stdout.printf ("source.display_name: %s\n", source.display_name);
- stdout.printf ("parent_source.display_name: %s\n", parent_source.display_name);
var provider_name = Contact.format_persona_store_name (persona_store);
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 1e60620..d0f12df 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -139,8 +139,7 @@ public class Contacts.App : Gtk.Application {
var acc = new AccountsGrid ();
- var box = dialog.get_content_area () as Box;
- box.pack_start (acc, true, true, 0);
+ (dialog.get_content_area () as Box).add (acc);
dialog.show_all ();
dialog.response.connect ( (response) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]