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 702631 - Set button arrow icons according to locale's text direction
Set button arrow icons according to locale's text direction
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
3.12
Depends on: 700918
Blocks:
 
 
Reported: 2013-06-19 10:20 UTC by Yosef Or Boczko
Modified: 2013-09-18 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set button arrow icons according to locale's text direction (1.20 KB, patch)
2013-06-19 10:20 UTC, Yosef Or Boczko
none Details | Review
Set button arrow icons according to locale's text direction (2.70 KB, patch)
2013-06-19 13:02 UTC, Yosef Or Boczko
reviewed Details | Review
Set button arrow icons according to locale's text direction (2.70 KB, patch)
2013-06-20 10:56 UTC, Yosef Or Boczko
none Details | Review
Set button arrow icons according to locale's text direction (19.37 KB, patch)
2013-06-20 13:16 UTC, Yosef Or Boczko
none Details | Review
main: Set button arrow icons according to locale's text direction (13.60 KB, patch)
2013-06-21 14:38 UTC, Yosef Or Boczko
needs-work Details | Review
browser-plugin: Set button arrow icons according to locale's text direction (2.62 KB, patch)
2013-06-21 14:41 UTC, Yosef Or Boczko
needs-work Details | Review
backend: Set button arrow icons according to locale's text direction (2.54 KB, patch)
2013-06-21 14:45 UTC, Yosef Or Boczko
rejected Details | Review
totem-grilo: Set button arrow icons according to locale's text direction (1.85 KB, patch)
2013-06-21 14:48 UTC, Yosef Or Boczko
needs-work Details | Review
Screenshot - before (1.01 MB, image/png)
2013-07-28 22:31 UTC, Yosef Or Boczko
  Details
Screenshot - after (1.01 MB, image/png)
2013-07-28 22:31 UTC, Yosef Or Boczko
  Details
main: Set button arrow icons according to locale's text direction (10.95 KB, patch)
2013-07-30 17:38 UTC, Yosef Or Boczko
needs-work Details | Review
browser-plugin: Set button arrow icons according to locale's text direction (2.54 KB, patch)
2013-07-30 17:40 UTC, Yosef Or Boczko
committed Details | Review
totem-grilo: Set button arrow icons according to locale's text direction (1.72 KB, patch)
2013-07-30 17:40 UTC, Yosef Or Boczko
committed Details | Review
main: Set button arrow icons according to locale's text direction (10.86 KB, patch)
2013-07-31 13:46 UTC, Yosef Or Boczko
committed Details | Review
main: Set button arrow icons according to locale's text direction (12.29 KB, patch)
2013-08-01 00:04 UTC, Yosef Or Boczko
needs-work Details | Review
browser-plugin: Set button arrow icons according to locale's text direction (2.37 KB, patch)
2013-08-01 00:05 UTC, Yosef Or Boczko
accepted-commit_now Details | Review
browser-plugin: Set button arrow icons according to locale's text direction (3.31 KB, patch)
2013-09-18 11:23 UTC, Bastien Nocera
none Details | Review
main: Set button arrow icons according to locale's text direction (11.82 KB, patch)
2013-09-18 11:24 UTC, Bastien Nocera
committed Details | Review
browser-plugin: Set button arrow icons according to locale's text direction (3.04 KB, patch)
2013-09-18 11:25 UTC, Bastien Nocera
committed Details | Review
browser-plugin: Don't disable deprecated functions (838 bytes, patch)
2013-09-18 11:26 UTC, Bastien Nocera
committed Details | Review
main: Add helper function to set RTL icons (878 bytes, patch)
2013-09-18 11:26 UTC, Bastien Nocera
committed Details | Review
main: Add a few missing header include paths (832 bytes, patch)
2013-09-18 11:27 UTC, Bastien Nocera
committed Details | Review

Description Yosef Or Boczko 2013-06-19 10:20:26 UTC
Created attachment 247247 [details] [review]
Set button arrow icons according to locale's text direction

See patch.
Comment 1 Yosef Or Boczko 2013-06-19 13:02:06 UTC
Created attachment 247255 [details] [review]
Set button arrow icons according to locale's text direction
Comment 2 Bastien Nocera 2013-06-20 09:07:34 UTC
Depending on how we go with the GtkMainToolbar widget, either we'll replace the code you're modifying with GtkMainToolbar, or I'll commit your patch. See bug 700918.
Comment 3 Bastien Nocera 2013-06-20 09:09:18 UTC
Review of attachment 247255 [details] [review]:

Rest of the patch looks good. I'll commit it if we don't go the GtkMainToolbar way.

::: src/plugins/grilo/totem-grilo.c
@@ +1279,3 @@
 	AtkObject *accessible;
 	GtkAdjustment *adj;
+    gboolean rtl;

indentation.
Comment 4 Yosef Or Boczko 2013-06-20 10:56:32 UTC
Created attachment 247310 [details] [review]
Set button arrow icons according to locale's text direction
Comment 5 Yosef Or Boczko 2013-06-20 13:16:29 UTC
Created attachment 247323 [details] [review]
Set button arrow icons according to locale's text direction

It fixes all the problems with RTL.
Comment 6 Bastien Nocera 2013-06-21 10:06:39 UTC
(In reply to comment #5)
> Created an attachment (id=247323) [details] [review]
> Set button arrow icons according to locale's text direction
> 
> It fixes all the problems with RTL.

I'd need all the changes to be made in separate patches, as I don't think we'll require the portions related to the toolbars.
Comment 7 Yosef Or Boczko 2013-06-21 11:10:40 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Created an attachment (id=247323) [details] [review] [details] [review]
> > Set button arrow icons according to locale's text direction
> > 
> > It fixes all the problems with RTL.
> 
> I'd need all the changes to be made in separate patches, as I don't think we'll
> require the portions related to the toolbars.

Why not put all one patch?
Comment 8 Bastien Nocera 2013-06-21 11:31:55 UTC
Because it makes it impossible to bisect for example, and that patches to plugins shouldn't be mixed with patches to the core program. This isn't CVS where committing a patch needs to connect to a super-slow network. Patches should be as small as they can be whilst staying meaningful.
Comment 9 Yosef Or Boczko 2013-06-21 14:38:55 UTC
Created attachment 247447 [details] [review]
main: Set button arrow icons according to locale's text direction
Comment 10 Yosef Or Boczko 2013-06-21 14:41:56 UTC
Created attachment 247449 [details] [review]
browser-plugin: Set button arrow icons according to locale's text direction
Comment 11 Yosef Or Boczko 2013-06-21 14:45:35 UTC
Created attachment 247450 [details] [review]
backend: Set button arrow icons according to locale's text direction
Comment 12 Yosef Or Boczko 2013-06-21 14:48:10 UTC
Created attachment 247451 [details] [review]
totem-grilo: Set button arrow icons according to locale's text direction
Comment 13 Yosef Or Boczko 2013-06-23 12:12:18 UTC
You push the patches?
Comment 14 Yosef Or Boczko 2013-07-01 14:28:00 UTC
I pushed the patches.
Comment 15 Bastien Nocera 2013-07-01 14:36:27 UTC
Why do you think you can push patches without review?

Your commits conflict with work that I'm doing in Totem and GTK+.
Comment 16 Yosef Or Boczko 2013-07-01 14:40:48 UTC
I'm sorry.
No one responded to my patches. I thought it was fine.

Usually, when there is a problem, someone says it. mark 'Should work'.

Again, I'm sorry.
Comment 17 Yosef Or Boczko 2013-07-01 16:42:47 UTC
Is there a problem with the patches?
Comment 18 Yosef Or Boczko 2013-07-28 21:31:57 UTC
Why 3.12?
and why you created branch gnome-3-10?
Comment 19 Bastien Nocera 2013-07-28 21:43:43 UTC
Read desktop-devel-list
Comment 20 Yosef Or Boczko 2013-07-28 22:31:27 UTC
Created attachment 250339 [details]
Screenshot - before
Comment 21 Yosef Or Boczko 2013-07-28 22:31:57 UTC
Created attachment 250340 [details]
Screenshot - after
Comment 22 Yosef Or Boczko 2013-07-28 22:34:20 UTC
I read.
Why not to commit the patches?
the patches them already exits.
Comment 23 Bastien Nocera 2013-07-30 16:04:17 UTC
Review of attachment 247447 [details] [review]:

Please use the totem_get_rtl_icon_name() helper I just added to src/gst/totem-rtl-helpers.h instead.
Comment 24 Bastien Nocera 2013-07-30 16:04:49 UTC
Review of attachment 247449 [details] [review]:

Needs to use the helpers as well.
Comment 25 Bastien Nocera 2013-07-30 16:05:36 UTC
Review of attachment 247450 [details] [review]:

I'm not interested in taking a patch for a test app that I'm probably the only one using.
Comment 26 Bastien Nocera 2013-07-30 16:06:11 UTC
Review of attachment 247451 [details] [review]:

Needs to use the helper as well.
Comment 27 Yosef Or Boczko 2013-07-30 17:38:50 UTC
Created attachment 250493 [details] [review]
main: Set button arrow icons according to locale's text direction
Comment 28 Yosef Or Boczko 2013-07-30 17:40:02 UTC
Created attachment 250494 [details] [review]
browser-plugin: Set button arrow icons according to locale's text direction
Comment 29 Yosef Or Boczko 2013-07-30 17:40:26 UTC
Created attachment 250495 [details] [review]
totem-grilo: Set button arrow icons according to locale's text direction
Comment 30 Bastien Nocera 2013-07-31 13:35:04 UTC
Review of attachment 250493 [details] [review]:

::: src/totem-object.c
@@ +65,3 @@
 #include "totem-preferences.h"
 #include "totem-session.h"
+#include "gst/totem-rtl-helpers.h"

Remove the "gst/" prefix, it's in the includes files search path.

::: src/totem-playlist.c
@@ +37,3 @@
 #include "totem-interface.h"
 #include "video-utils.h"
+#include "gst/totem-rtl-helpers.h"

Ditto

::: src/totem.c
@@ +51,3 @@
 #include "totem-session.h"
 #include "video-utils.h"
+#include "gst/totem-rtl-helpers.h"

Remove gst/ prefix again.

@@ +77,3 @@
 	GtkSettings *gtk_settings;
 	char *sidebar_pageid;
+	GtkAction *play, *next_chapter, *previous_chapter;

Add a single "*action" variable.

@@ +93,3 @@
 		totem_object_action_exit (NULL);
 
+	play = GTK_ACTION (gtk_builder_get_object (totem->xml, "play"));

action = GTK_ACTION(...);
gtk_action_set_icon_name (action, totem_get_rtl_action_name (...));
Comment 31 Bastien Nocera 2013-07-31 13:36:16 UTC
Review of attachment 250494 [details] [review]:

Looks good.
Comment 32 Bastien Nocera 2013-07-31 13:36:54 UTC
Review of attachment 250495 [details] [review]:

Looks good.
Comment 33 Yosef Or Boczko 2013-07-31 13:46:12 UTC
Created attachment 250545 [details] [review]
main: Set button arrow icons according to locale's text direction
Comment 34 Bastien Nocera 2013-07-31 14:06:31 UTC
Review of attachment 250545 [details] [review]:

looks good
Comment 35 Yosef Or Boczko 2013-07-31 14:07:53 UTC
Review of attachment 250545 [details] [review]:

pushed as 804d8f77d54e5cfe171dd42486e143060bd8df3f - Set button arrow icons according to locale's text direction
Comment 36 Yosef Or Boczko 2013-07-31 14:08:33 UTC
Review of attachment 250494 [details] [review]:

pushed as db8024fa28edfa2b21c9bfd157fc1751941e1ccf - browser-plugin: Set button arrow icons according to locale's text direction
Comment 37 Yosef Or Boczko 2013-07-31 14:09:09 UTC
Review of attachment 250495 [details] [review]:

pushed as 55d7d204544d82933f604f8dafcf1b26a9af75a8 - totem-grilo: Set button arrow icons according to locale's text direction
Comment 38 Yosef Or Boczko 2013-08-01 00:04:11 UTC
Created attachment 250568 [details] [review]
main: Set button arrow icons according to locale's text direction

The patch for gnome-3-8 and branch gnome-3-10 branch.

btw, need patch for build ("fatal error: totem-rtl-helpers.h: No such file or directory").
Comment 39 Yosef Or Boczko 2013-08-01 00:05:07 UTC
Created attachment 250569 [details] [review]
browser-plugin: Set button arrow icons according to locale's text direction

The patch for gnome-3-8 and branch gnome-3-10 branch.
Comment 40 Yosef Or Boczko 2013-08-01 00:06:08 UTC
Not need patch for totem-grilo for gnome-3-8 and branch gnome-3-10 branch.
Comment 41 Bastien Nocera 2013-08-20 03:02:40 UTC
Review of attachment 250568 [details] [review]:

Rest looks fine.

::: src/totem.c
@@ +94,3 @@
 
+	action = GTK_ACTION (gtk_builder_get_object (totem->xml, "play"));
+	gtk_action_set_icon_name (action, totem_get_rtl_icon_name ("media-playback-start"));

You're doing 5 times the same thing (getting a widget, setting an icon), please split this into a function.
Comment 42 Bastien Nocera 2013-08-20 03:03:11 UTC
Review of attachment 250569 [details] [review]:

Looks good.
Comment 43 Bastien Nocera 2013-09-18 11:23:46 UTC
Created attachment 255164 [details] [review]
browser-plugin: Set button arrow icons according to locale's text direction

media-playback-start-symbolic in LTR,
media-playback-start-rtl-symbolic in RTL.
Comment 44 Bastien Nocera 2013-09-18 11:24:08 UTC
Created attachment 255165 [details] [review]
main: Set button arrow icons according to locale's text direction

media-playback-start-symbolic in LTR,
media-playback-start-rtl-symbolic in RTL.

media-seek-forward-symbolic in LTR,
media-seek-forward-rtl-symbolic in RTL.

media-seek-backward-symbolic in LTR,
media-seek-backward-rtl-symbolic in RTL.

media-skip-forward-symbolic in LTR,
media-skip-forward-rtl-symbolic in RTL.

media-skip-backward-symbolic in LTR,
media-skip-backward-rtl-symbolic in RTL.
Comment 45 Bastien Nocera 2013-09-18 11:25:02 UTC
Created attachment 255166 [details] [review]
browser-plugin: Set button arrow icons according to locale's text direction

media-playback-start-symbolic in LTR,
media-playback-start-rtl-symbolic in RTL.
Comment 46 Bastien Nocera 2013-09-18 11:26:03 UTC
Created attachment 255167 [details] [review]
browser-plugin: Don't disable deprecated functions

We still rely on the stock API.
Comment 47 Bastien Nocera 2013-09-18 11:26:47 UTC
Created attachment 255168 [details] [review]
main: Add helper function to set RTL icons
Comment 48 Bastien Nocera 2013-09-18 11:27:28 UTC
Created attachment 255169 [details] [review]
main: Add a few missing header include paths

https://bugzilla.gnome.org/show_bug.cgi?id=702631

Conflicts:
	src/Makefile.am
Comment 49 Colin Walters 2013-09-18 12:49:32 UTC
These all look safe to me.
Comment 50 Bastien Nocera 2013-09-18 12:58:07 UTC
All pushed to gnome-3-10 as appropriate, freeze break requests approved by walters and fredp.

Attachment 255165 [details] pushed as 3ff23cf - main: Set button arrow icons according to locale's text direction
Attachment 255166 [details] pushed as fe628f8 - browser-plugin: Set button arrow icons according to locale's text direction
Attachment 255167 [details] pushed as 3cc4d3a - browser-plugin: Don't disable deprecated functions
Attachment 255168 [details] pushed as 185c7aa - main: Add helper function to set RTL icons
Attachment 255169 [details] pushed as dd86c29 - main: Add a few missing header include paths