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 677502 - fix compile warnings
fix compile warnings
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: Gnome-Sound-Recorder
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-05 18:35 UTC by Oleksij Rempel
Modified: 2012-06-06 11:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
grecord: Replace gtk_hbox_new with gtk_box_new (3.06 KB, patch)
2012-06-05 18:36 UTC, Oleksij Rempel
needs-work Details | Review
grecord: Replace gtk_vbox_new with gtk_box_new (2.60 KB, patch)
2012-06-05 18:36 UTC, Oleksij Rempel
reviewed Details | Review
grecord: Replace g_format_size_for_display with g_format_size (946 bytes, patch)
2012-06-05 18:36 UTC, Oleksij Rempel
reviewed Details | Review
grecord: Replace %llu with G_GINT64_FORMAT (993 bytes, patch)
2012-06-05 18:36 UTC, Oleksij Rempel
committed Details | Review
grecord: Replace gtk_hscale_new with gtk_scale_new (1.09 KB, patch)
2012-06-05 18:36 UTC, Oleksij Rempel
reviewed Details | Review
grecord: Replace gtk_vbox_new with gtk_box_new (2.38 KB, patch)
2012-06-06 06:16 UTC, Oleksij Rempel
none Details | Review
grecord: Replace gtk_hbox_new with gtk_box_new (2.82 KB, patch)
2012-06-06 06:16 UTC, Oleksij Rempel
none Details | Review
gnome-media: update gtk version to 3.4.0 (791 bytes, patch)
2012-06-06 06:18 UTC, Oleksij Rempel
needs-work Details | Review
gnome-media: update gtk version to 3.4.0 (5.59 KB, patch)
2012-06-06 10:00 UTC, Oleksij Rempel
reviewed Details | Review
gnome-media: update gtk version to 3.4.0 (6.33 KB, patch)
2012-06-06 10:25 UTC, Oleksij Rempel
committed Details | Review

Description Oleksij Rempel 2012-06-05 18:35:59 UTC
this patch set fixes differend kind of compiler warnings in
gnome-sound-recorder code.
Comment 1 Oleksij Rempel 2012-06-05 18:36:02 UTC
Created attachment 215668 [details] [review]
grecord: Replace gtk_hbox_new with gtk_box_new

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 2 Oleksij Rempel 2012-06-05 18:36:05 UTC
Created attachment 215669 [details] [review]
grecord: Replace gtk_vbox_new with gtk_box_new

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 3 Oleksij Rempel 2012-06-05 18:36:08 UTC
Created attachment 215670 [details] [review]
grecord: Replace g_format_size_for_display with g_format_size

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 4 Oleksij Rempel 2012-06-05 18:36:11 UTC
Created attachment 215671 [details] [review]
grecord: Replace %llu with G_GINT64_FORMAT

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 5 Oleksij Rempel 2012-06-05 18:36:14 UTC
Created attachment 215672 [details] [review]
grecord: Replace gtk_hscale_new with gtk_scale_new

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 6 Marc-Andre Lureau 2012-06-05 19:00:22 UTC
Review of attachment 215668 [details] [review]:

::: grecord/src/gsr-window.c
@@ +1098,3 @@
 
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+	gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);

the default value is already FALSE
Comment 7 Marc-Andre Lureau 2012-06-05 19:01:16 UTC
Review of attachment 215669 [details] [review]:

that patch is so similar to previous one that I would have merged them.

::: grecord/src/gsr-window.c
@@ +1088,3 @@
 
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
+	gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE);

the default value is FALSE.
Comment 8 Marc-Andre Lureau 2012-06-05 19:02:50 UTC
Review of attachment 215670 [details] [review]:

please bump configure.ac requirement when using newer function
Comment 9 Marc-Andre Lureau 2012-06-05 19:03:14 UTC
Review of attachment 215671 [details] [review]:

ack
Comment 10 Marc-Andre Lureau 2012-06-05 19:04:07 UTC
Review of attachment 215672 [details] [review]:

::: grecord/src/gsr-window.c
@@ +2344,3 @@
 	gtk_widget_show (content_vbox);
 
+	priv->scale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL,

please bump configure.ac gtk version requirement before
Comment 11 Marc-Andre Lureau 2012-06-05 19:04:33 UTC
Review of attachment 215668 [details] [review]:

please bump configure.ac gtk version requirement
Comment 12 Oleksij Rempel 2012-06-06 06:16:14 UTC
Created attachment 215707 [details] [review]
grecord: Replace gtk_vbox_new with gtk_box_new

v2: remove gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE);

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 13 Oleksij Rempel 2012-06-06 06:16:36 UTC
Created attachment 215708 [details] [review]
grecord: Replace gtk_hbox_new with gtk_box_new

v2: remove gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 14 Oleksij Rempel 2012-06-06 06:18:49 UTC
Created attachment 215709 [details] [review]
gnome-media: update gtk version to 3.4.0

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 15 Oleksij Rempel 2012-06-06 06:20:02 UTC
The last patch should go before others.
Comment 16 Marc-Andre Lureau 2012-06-06 09:33:14 UTC
Review of attachment 215709 [details] [review]:

please merge this patch with the gtk_box_new() patches. thanks
Comment 17 Oleksij Rempel 2012-06-06 10:00:37 UTC
Created attachment 215726 [details] [review]
gnome-media: update gtk version to 3.4.0

and fix compile warnings:
grecord: Replace gtk_hbox_new with gtk_box_new
grecord: Replace gtk_vbox_new with gtk_box_new
grecord: Replace g_format_size_for_display with g_format_size
grecord: Replace gtk_hscale_new with gtk_scale_new

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 18 Oleksij Rempel 2012-06-06 10:03:00 UTC
i merged all update related patches. IMHO, then it is better if git revert is needed.
Comment 19 Marc-Andre Lureau 2012-06-06 10:07:04 UTC
Review of attachment 215726 [details] [review]:

does this fix all gnome-media warnings or just grecord?
Comment 20 Oleksij Rempel 2012-06-06 10:11:08 UTC
all gtk related. they all was only in grecord.
Comment 21 Oleksij Rempel 2012-06-06 10:14:17 UTC
oops... one more found in gvc-sound-theme-chooser, it was hidden behind other warnings.
Comment 22 Oleksij Rempel 2012-06-06 10:25:13 UTC
Created attachment 215728 [details] [review]
gnome-media: update gtk version to 3.4.0

and fix compile warnings:
grecord: Replace gtk_hbox_new with gtk_box_new
grecord: Replace gtk_vbox_new with gtk_box_new
grecord: Replace g_format_size_for_display with g_format_size
grecord: Replace gtk_hscale_new with gtk_scale_new
sound-theme: Replace gtk_hbox_new with gtk_box_new

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Comment 23 Marc-Andre Lureau 2012-06-06 11:03:15 UTC
Review of attachment 215728 [details] [review]:

ack
Comment 24 Oleksij Rempel 2012-06-06 11:39:43 UTC
Attachment 215671 [details] pushed as 29add32 - grecord: Replace %llu with G_GINT64_FORMAT
Attachment 215728 [details] pushed as 7bf2726 - gnome-media: update gtk version to 3.4.0