diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
commit | 5563da141e1fd0474f1eeedb967209c55227abae (patch) | |
tree | 79edb6566aecd22050117f9728b17e40156fd093 /src/trg-torrent-move-dialog.c | |
parent | 4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff) |
issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements).
Diffstat (limited to 'src/trg-torrent-move-dialog.c')
-rw-r--r-- | src/trg-torrent-move-dialog.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/trg-torrent-move-dialog.c b/src/trg-torrent-move-dialog.c index 21a76fe..744b821 100644 --- a/src/trg-torrent-move-dialog.c +++ b/src/trg-torrent-move-dialog.c @@ -34,8 +34,7 @@ G_DEFINE_TYPE(TrgTorrentMoveDialog, trg_torrent_move_dialog, GTK_TYPE_DIALOG) #define TRG_TORRENT_MOVE_DIALOG_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRG_TYPE_TORRENT_MOVE_DIALOG, TrgTorrentMoveDialogPrivate)) -typedef struct _TrgTorrentMoveDialogPrivate - TrgTorrentMoveDialogPrivate; +typedef struct _TrgTorrentMoveDialogPrivate TrgTorrentMoveDialogPrivate; struct _TrgTorrentMoveDialogPrivate { TrgClient *client; @@ -90,8 +89,8 @@ static void location_changed(GtkWidget * w, gpointer data) static GObject *trg_torrent_move_dialog_constructor(GType type, guint n_construct_properties, - GObjectConstructParam - * construct_params) + GObjectConstructParam * + construct_params) { GObject *object = G_OBJECT_CLASS (trg_torrent_move_dialog_parent_class)->constructor(type, @@ -279,6 +278,6 @@ TrgTorrentMoveDialog *trg_torrent_move_dialog_new(TrgMainWindow * win, { return g_object_new(TRG_TYPE_TORRENT_MOVE_DIALOG, "trg-client", client, - "torrent-tree-view", ttv, - "parent-window", win, NULL); + "torrent-tree-view", ttv, "parent-window", win, + NULL); } |