patchFreeciv - Patches: patch #3560, Use standard button interface...

 
 
Show feedback again

patch #3560: Use standard button interface (patch 21/60)

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Tue Nov 13 23:44:59 2012  
 
Category: client-gtk-3.0Priority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.6.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sun Oct 20 11:12:49 2013, comment #10:

I'm currently carrying the attached local patch to relax the Gtk 3.6.0 requirement, so I can work with the Gtk3 client on trunk (Ubuntu 12.04 only has 3.4.2-0ubuntu0.5).

Not suggested for commit in its current form, but is there any interest in committing something like this in some form? We currently have no other dependence on >=3.6.0 (although I'm sure we'll get a more substantial dependency at some point). If so I can raise a new ticket.

(For what it's worth, the button image appeared with all the themes on my system, including the Freeciv theme.)

(file #19213)

Jacob Nevins <jtn>
Project Administrator
Mon Jun 3 21:37:02 2013, SVN revision 22931:

Use standard gtk3 button interface in governor.
Made version 3.6 of gtk minimum requirement of gtk3-client.

Patch by Rafa?\197?\130 Mu?\197?\188y?\197?\130o and myself

See patch #3560

(Browse SVN revision 22931)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Thu May 30 21:26:44 2013, comment #8:

Version that makes gtk+ 3.6 minimum requirement, and uses gtk_button_set_always_show_image(). Meant for TRUNK only.

(file #18033)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Thu May 30 20:55:14 2013, comment #7:

From patch #3889:

> One other thing regarding patch #3560:
> while there is gtk_button_set_always_show_image, it's only since > 3.6 and IMHO title of the button is descriptive enough in the
> context anyway if one has a theme that turns off images on
> buttons.


Could that be the thing to do in development version even though it cannot be solution for S2_4. Make gtk+-3.6 minimum requirement, and use gtk_button_set_always_show_image().

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sat May 4 08:08:59 2013, comment #6:

It's not about whether one can understand what the button says, but about always noticing it, subconsciously at least. With just the button text one may quickly changes the other settings without looking if this "master switch" actually makes the (correct) changes to take effect.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Fri May 3 18:09:14 2013, comment #5:

As with any other gtk-setting, gtk-button-images can be set in settings.ini accompanying gtk.css.
Though I stand by what I wrote in patch #3889 (and a few other places) on this topic.

Rafał Mużyło <galtgendo>
Wed May 1 18:18:35 2013, comment #4:

> Well, we could just set this to true in the theme.


Sorry, I had (probably) misinterpreted this earlier. You mean it's just change in Freeciv theme to make the image visible again?

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sat Nov 17 02:49:37 2012, comment #3:

Well, we could just set this to true in the theme.

Note, that there are other places already affected by this setting - that screenshot in patch #3561 suggests you didn't notice that.

Rafał Mużyło <galtgendo>
Fri Nov 16 23:34:40 2012, comment #2:

> As it's a standard button now, it follows the theme.


Uhm. Maybe the whole point of not having it as standard button earlier was that it's better with glaring indicator of governor state. With this patch it has just the text.

Can you list some pros (and cons) for this patch?

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Wed Nov 14 02:07:41 2012, comment #1:

Actually, that probably means it does work.

The answer may lie in "gtk-button-images" from GtkSettings.
As it's a standard button now, it follows the theme.

Rafał Mużyło <galtgendo>
Tue Nov 13 23:44:59 2012, original submission:

This ticket is about handling patch 21/60 (Use standard button interface) from Rafał Mużyło's patchset in patch #3469

I tested this patch, and it seems that the red/green icon from the golvernor on/off button disappears with the patch.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #19213:  trunk-allow-gtk-34x.patch added by jtn (3kB - text/x-diff - trunk r23597: temporary patch to allow compilation with Gtk 3.4.x)
file #18033:  Gtk3StdButIface.patch added by cazfi (5kB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jtn (Updated the item)
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Error: not logged in

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Oct 20 11:12:49 2013jtnAttached File-=>Added trunk-allow-gtk-34x.patch, #19213
    Mon Jun 3 21:37:38 2013cazfiStatusReady For Test=>Done
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Thu May 30 21:26:44 2013cazfiAttached File-=>Added Gtk3StdButIface.patch, #18033
      StatusNone=>Ready For Test
      Planned Release2.5.0=>2.6.0
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup