LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
No ideas?
 
Old 01-12-2009, 08:22 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration