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 135177 - GtkEntry and justification
GtkEntry and justification
Status: RESOLVED DUPLICATE of bug 59799
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-02-23 04:53 UTC by Steffen Gutmann
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
diff of gtk+-2.2.2/gtk/gtkentry,h to patched version (182 bytes, patch)
2004-02-24 02:34 UTC, Steffen Gutmann
none Details | Review
diff of gtk+-2.2.2/gtk/gtkentry.c to partched version (2.31 KB, text/plain)
2004-02-24 02:48 UTC, Steffen Gutmann
  Details

Description Steffen Gutmann 2004-02-23 04:53:38 UTC
I modified the original gtkentry.[ch] source and added two functions

void gtk_entry_set_justify(GtkEntry *entry, GtkJustification jtype);
GtkJustification gtk_entry_get_justify(GtkEntry *entry);

I went through major parts of the source and made sure, mouse clicks,
drag'n drop, text selection, etc. are handled correctly. So far I didn't
experience any problems so I would like to open my solution to other
developers.  I put my replacments here:

http://www.informatik.uni-freiburg.de/~gutmann/gtk/gtkentry.h
http://www.informatik.uni-freiburg.de/~gutmann/gtk/gtkentry.c

and if you do a diff to the original version, you will find out they only
differ at a few places.

It would be great to see these enhancements in a future version of gtk.

-- Steffen Gutmann
Comment 1 Matthias Clasen 2004-02-23 09:20:41 UTC
Steffen, it is hard for us to do a diff ourselves if you don't tell us 
what the base version is. Please do a diff yourself, attach it to this 
report, and add the PATCH keyword when done. That will this defect 
much harder to ignore. Thanks.
Comment 2 Steffen Gutmann 2004-02-24 02:34:56 UTC
Created attachment 24706 [details] [review]
diff of gtk+-2.2.2/gtk/gtkentry,h to patched version
Comment 3 Steffen Gutmann 2004-02-24 02:48:06 UTC
Created attachment 24708 [details]
diff of gtk+-2.2.2/gtk/gtkentry.c to partched version
Comment 4 Steffen Gutmann 2004-02-24 02:52:33 UTC
Matthias, sorry I for not mentioning the full gtk version, it is
gtk+-2.2.2.

Btw, there was a previous report which I didn't see before but it
covers the same aspect than mine:  id 59799,
http://bugzilla.gnome.org/show_bug.cgi?id=59799.

-- Steffen
Comment 5 Matthias Clasen 2004-02-24 08:08:48 UTC
Thanks for the diffs Steffen. We do prefer unified diffs for 
readability, but these will probably do.


Comment 6 Owen Taylor 2004-02-24 14:14:39 UTC
In any case, this needs to be done with an alignment parameter
as described in bug 59799. 

(I'd say that we don't just prefer unified diffs (diff -u) we really
require them. Straight diffs as attached here can't be applied if any
changes have been made to those files at all.)

*** This bug has been marked as a duplicate of 59799 ***