{"id":407,"date":"2011-03-28T10:36:18","date_gmt":"2011-03-28T09:36:18","guid":{"rendered":"http:\/\/gnome\/gtk-meego-handset-week8"},"modified":"2011-03-28T10:36:18","modified_gmt":"2011-03-28T09:36:18","slug":"gtkmeego-handset-integration-week-8","status":"publish","type":"post","link":"https:\/\/blogs.igalia.com\/carlosgc\/2011\/03\/28\/gtkmeego-handset-integration-week-8\/","title":{"rendered":"GTK+\/MeeGo Handset integration: Week 8"},"content":{"rendered":"<p><strong>GtkEntry:placeholder-text<\/strong><\/p>\n<p>Good news here, <a href=\"http:\/\/blogs.fedoraproject.org\/wp\/mclasen\">Matthias<\/a> <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=440963#c45\">reviewed and approved<\/a> my patches, so I <a href=\"http:\/\/git.gnome.org\/browse\/gtk+\/commit\/?id=ef061c4e967d883077042bc8abe398fa3351895a\">committed<\/a> <a href=\"http:\/\/git.gnome.org\/browse\/gtk+\/commit\/?id=e13794bef92ccd9e87389817316ba4ea2edd4797\">them<\/a>.<\/p>\n<p>In the same <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=440963\">bug report<\/a>, Johannes Schmid <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=440963#c44\">proposed<\/a> to add placeholder text to GtkCellrendererText too, and I think it makes even more sense than for entries since it&#8217;s not obvious when a treeview cell is editable. Glade has a custom implementation for the signal editor. I filed a new <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=645514\">bug report<\/a> and attached a <a href=\"http:\/\/bugzilla-attachments.gnome.org\/attachment.cgi?id=184052\">patch<\/a>.<\/p>\n<p><strong>GtkScrolledWindow: kinetic scrolling<\/strong><\/p>\n<p>While I was on vacation I had the opportunity to play with an Android phone for a while (thanks <a href=\"http:\/\/libresoft.es\/ourplanet\/daily-planet\/Members\/rocapal\/blog\">Roca<\/a>!), I was very curious about how they solved the problem of selecting text in scrollable widgets and it turned out that they use press-and-hold. After a long press the current word is selected and two handles show up to extend the selection. I don&#8217;t like the handles, and I don&#8217;t think we need it, but the press-and-hold solution might work for us. We can simply wait after the long press to cancel the scrolling operation and propagate events to child widgets normally so that both selections and drag and drop operations will work as if kinetic scrolling mode were not enabled. I submitted a <a href=\"https:\/\/bugzilla.gnome.org\/attachment.cgi?id=184149\">patch<\/a> that uses press-and-hold to allow selections and drag and drop operations when kinetic scrolling mode is enabled in GtkScrolledWindow. However, <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=462208#c30\">I couldn&#8217;t use<\/a> any of the solutions proposed for press-and-hold in <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=315645\">bug #315645<\/a>. As <a href=\"http:\/\/blogs.gnome.org\/kris\/\">kris<\/a> <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=462208#c31\">commented<\/a> (thanks kris for your feedback in this and other bugs, by the way!), this press-and-hold use case changes the game a bit, so we&#8217;ll have to think a bit more about it.<\/p>\n<p><strong>GtkLiveEntry<\/strong><\/p>\n<p>I noticed my patch had a couple of regressions regarding GtkEntry popdown menu handling, corresponding to old bugs <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=169534\">#169534<\/a> and <a href=\"https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=71868\">#71868<\/a>. Updated the patches (<a href=\"https:\/\/bugzilla.gnome.org\/attachment.cgi?id=184423\">GtkLiveEntry<\/a> and <a href=\"https:\/\/bugzilla.gnome.org\/attachment.cgi?id=184424\">GtkTreeView<\/a>) to apply on current git master and fix the regressions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GtkEntry:placeholder-text Good news here, Matthias reviewed and approved my patches, so I committed them. In the same bug report, Johannes Schmid proposed to add placeholder text to GtkCellrendererText too, and I think it makes even more sense than for entries &hellip; <a href=\"https:\/\/blogs.igalia.com\/carlosgc\/2011\/03\/28\/gtkmeego-handset-integration-week-8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[15],"class_list":["post-407","post","type-post","status-publish","format-standard","hentry","category-gnome","category-igalia","tag-gtk"],"_links":{"self":[{"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/posts\/407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.igalia.com\/carlosgc\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}