After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676515 - [PATCH] Misc cleanups
[PATCH] Misc cleanups
Status: RESOLVED FIXED
Product: gnome-user-share
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-21 18:48 UTC by Cosimo Cecchi
Modified: 2012-06-01 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
share-bar: remove empty finalize method (1.67 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
share-bar: simplify code (1.08 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
user-share: add missing include (651 bytes, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
share-extension: remove code that does nothing (2.81 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
share-extension: remove empty finalize method (1.63 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
share-extension: remove empty private structure (1.82 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
obexpush: don't special case GTK <= 2.14 (1.04 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
obexpush: fix a compiler warning (850 bytes, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
all: don't use deprecated GDK methods (1.29 KB, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
user-share: mark the x_fd variable as unused (710 bytes, patch)
2012-05-21 18:48 UTC, Cosimo Cecchi
committed Details | Review
share-bar: remove unused nautilus_share_bar_get_button() (3.18 KB, patch)
2012-05-21 19:07 UTC, Cosimo Cecchi
committed Details | Review
share-bar: make the label property write only (2.67 KB, patch)
2012-05-21 19:07 UTC, Cosimo Cecchi
committed Details | Review
share-bar: don't set italic text (1.84 KB, patch)
2012-05-21 19:07 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2012-05-21 18:48:00 UTC
Mostly trivial cleanups that remove some unused code and simplify some other.
Comment 1 Cosimo Cecchi 2012-05-21 18:48:02 UTC
Created attachment 214583 [details] [review]
share-bar: remove empty finalize method
Comment 2 Cosimo Cecchi 2012-05-21 18:48:04 UTC
Created attachment 214584 [details] [review]
share-bar: simplify code
Comment 3 Cosimo Cecchi 2012-05-21 18:48:06 UTC
Created attachment 214585 [details] [review]
user-share: add missing include

This is needed for g_rename()
Comment 4 Cosimo Cecchi 2012-05-21 18:48:08 UTC
Created attachment 214586 [details] [review]
share-extension: remove code that does nothing

We keep track of widgets, but don't do anything with them, so just
remove this code.
Comment 5 Cosimo Cecchi 2012-05-21 18:48:10 UTC
Created attachment 214587 [details] [review]
share-extension: remove empty finalize method
Comment 6 Cosimo Cecchi 2012-05-21 18:48:13 UTC
Created attachment 214588 [details] [review]
share-extension: remove empty private structure
Comment 7 Cosimo Cecchi 2012-05-21 18:48:15 UTC
Created attachment 214589 [details] [review]
obexpush: don't special case GTK <= 2.14

Since we already depend on > 3.0 in configure.
Comment 8 Cosimo Cecchi 2012-05-21 18:48:18 UTC
Created attachment 214590 [details] [review]
obexpush: fix a compiler warning
Comment 9 Cosimo Cecchi 2012-05-21 18:48:20 UTC
Created attachment 214591 [details] [review]
all: don't use deprecated GDK methods

https://bugzilla.gnome.org/show_bug.cgi?id=676443
Comment 10 Cosimo Cecchi 2012-05-21 18:48:22 UTC
Created attachment 214592 [details] [review]
user-share: mark the x_fd variable as unused

Fixes a GCC warning about set but not used variables.
Comment 11 Cosimo Cecchi 2012-05-21 19:07:35 UTC
Created attachment 214596 [details] [review]
share-bar: remove unused nautilus_share_bar_get_button()
Comment 12 Cosimo Cecchi 2012-05-21 19:07:40 UTC
Created attachment 214597 [details] [review]
share-bar: make the label property write only

Since that's all it's needed.
Comment 13 Cosimo Cecchi 2012-05-21 19:07:45 UTC
Created attachment 214598 [details] [review]
share-bar: don't set italic text

We don't favor italic text in the GNOME3 style. Since we already have a
bold heading, this is kinda redundant anyway.
Comment 14 Bastien Nocera 2012-06-01 14:33:54 UTC
Review of attachment 214583 [details] [review]:

Yep.
Comment 15 Bastien Nocera 2012-06-01 14:34:20 UTC
Review of attachment 214584 [details] [review]:

Looks good.
Comment 16 Bastien Nocera 2012-06-01 14:35:48 UTC
Review of attachment 214585 [details] [review]:

Yep
Comment 17 Bastien Nocera 2012-06-01 14:36:34 UTC
Review of attachment 214586 [details] [review]:

.
Comment 18 Bastien Nocera 2012-06-01 14:37:00 UTC
Review of attachment 214587 [details] [review]:

.
Comment 19 Bastien Nocera 2012-06-01 14:37:19 UTC
Review of attachment 214588 [details] [review]:

.
Comment 20 Bastien Nocera 2012-06-01 14:37:37 UTC
Review of attachment 214589 [details] [review]:

.
Comment 21 Bastien Nocera 2012-06-01 14:38:13 UTC
Review of attachment 214590 [details] [review]:

::: src/obexpush.c
@@ +213,3 @@
 		GHashTable *props;
 
+		g_message ("checking adapter %s", (gchar *) g_ptr_array_index (adapters, i));

Could you switch that to be g_debug() at the same time please?
Comment 22 Bastien Nocera 2012-06-01 14:38:35 UTC
Review of attachment 214591 [details] [review]:

.
Comment 23 Bastien Nocera 2012-06-01 14:38:56 UTC
Review of attachment 214592 [details] [review]:

.
Comment 24 Bastien Nocera 2012-06-01 14:39:19 UTC
Review of attachment 214596 [details] [review]:

.
Comment 25 Bastien Nocera 2012-06-01 14:39:51 UTC
Review of attachment 214597 [details] [review]:

.
Comment 26 Bastien Nocera 2012-06-01 14:40:11 UTC
Review of attachment 214598 [details] [review]:

.
Comment 27 Cosimo Cecchi 2012-06-01 14:46:05 UTC
Attachment 214583 [details] pushed as d1c1de3 - share-bar: remove empty finalize method
Attachment 214584 [details] pushed as 532c0b1 - share-bar: simplify code
Attachment 214585 [details] pushed as 0a5f5e0 - user-share: add missing include
Attachment 214586 [details] pushed as f434976 - share-extension: remove code that does nothing
Attachment 214587 [details] pushed as 48a3b06 - share-extension: remove empty finalize method
Attachment 214588 [details] pushed as aa18c57 - share-extension: remove empty private structure
Attachment 214589 [details] pushed as 4b60c40 - obexpush: don't special case GTK <= 2.14
Attachment 214590 [details] pushed as db151a9 - obexpush: fix a compiler warning
Attachment 214591 [details] pushed as 7b51e6c - all: don't use deprecated GDK methods
Attachment 214592 [details] pushed as ba5961c - user-share: mark the x_fd variable as unused
Attachment 214596 [details] pushed as 71f364b - share-bar: remove unused nautilus_share_bar_get_button()
Attachment 214597 [details] pushed as c307a01 - share-bar: make the label property write only
Attachment 214598 [details] pushed as 05df1dd - share-bar: don't set italic text