LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-08-2009, 03:22 AM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
GTK Dialog Box Button Order


I want to reverse the button order in GTK dialog boxes. Currently the buttons are Cancel-OK, as read left to right. I want OK-Cancel as read left to right.

In /etc/gtk-2.0/gtkrc I have gtk-alternative-button-order=1. Permissions are 644. The GTK2_RC_FILES environment variable is set to:

GTK2_RC_FILES=$HOME/.config/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0:/etc/gtk-2.0/gtkrc

I tried $HOME/.config/gtk-2.0/gtkrc and $HOME/.gtkrc-2.0 with the same option.

I tried setting the option to true and True. I tried zero (false).

GIMP abides by the option. Audacity, LSHW, MP3Splt, WireShark, and Firefox do not.

Doesn't matter whether I am in KDE or Xfce.

I've tried userChrome.css tricks for Firefox but they all seem obsolete now and do not work.

Seems all GTK apps but GIMP ignore this option. I'm inclined to think this option is obsolete. Is there another option or a different way? Is another option overriding this option?

I've searched the web until my eyes were bleary.

I'm stumped.

Edit: Perhaps this is futile? I found this snippet:

. . . Gtk apps need to be coded to accept an alternative button order - GIMP 2.4 has, GIMP 2.2 hasn't. Firefox is a bit more tricky. . . .

This would imply that each GTK app has to look for the gtk-alternative-button-order option?

I recall reading that Firefox was supposed to adapt the button order to each desktop. I'll settle for reversing the buttons in Firefox 3.0x (Slackware 12.2). . . .

Any help?

Last edited by Woodsman; 01-09-2009 at 01:18 PM.
 
Old 01-12-2009, 06:18 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
No ideas?
 
Old 01-12-2009, 08:22 PM   #3
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,979

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Hi Woodsman,

Didn't want you to get lonesome or think that no one cares! I have read this post several times but had no ideas to contribute, but here is some moral support for what it is worth.

My son is our resident Gtk-Genius so I'll ask him first chance I get.

Last edited by astrogeek; 01-12-2009 at 09:23 PM.
 
Old 01-17-2009, 11:38 PM   #4
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,979

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
I had my son, our Gtk-geek, read your original post earlier today and asked if he had any ideas.

He said that the snippet you posted is correct as far as he knows - ie, apps have be coded to provide the functionality. He was aware that you can code Gtk apps to alter their button order, but he has never actually bothered to do so in his apps - and apparently most others do not do so either.

The only app he was aware of that provided that capability did so through a preferences type setup and did not rely on the global config variable.

As far as Firefox - or any other apps that are coded to recognize it, sorry no help there either - batting zero on this one.

But he would be interested to hear if you learn more about this just for his own curiosity, so if you come up with anything new please post it here.

Sorry we couldn't provide any answers.
 
Old 01-17-2009, 11:49 PM   #5
SqdnGuns
Member
 
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64 14.0
Posts: 981

Rep: Reputation: 88
Woodsman, contact this guy, The Rob via here:

http://www.gnome-look.org/usermanage...sername=TheRob

He appears to be a GTK geek and just may know of a solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ok button on yumex preferences dialog box don't work abhi_deokar Fedora 2 07-08-2007 03:23 PM
'dialog' app for GTK+2.0 General Programming 6 04-23-2006 01:10 PM
gtk_file_chooser button/vs dialog jfilse Programming 4 03-22-2006 09:40 AM
Dialog modal+GTK santhosh.linux Programming 1 02-20-2006 11:47 AM
Dialog box help!!!!!!!! HopelessLinuxNewbie Fedora 1 08-24-2005 11:48 AM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration