From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#43405: Tool bar item doesn't align to the right edge Date: Mon, 21 Sep 2020 22:07:51 +0200 Message-ID: References: <87zh5uqdqm.fsf@mail.linkov.net> <834ko1da33.fsf@gnu.org> <87sgbloe5z.fsf@mail.linkov.net> <83een5bkja.fsf@gnu.org> <87v9ghlc5c.fsf@mail.linkov.net> <83d02pbhny.fsf@gnu.org> <87een4qi9i.fsf_-_@mail.linkov.net> <837dsw9mpu.fsf@gnu.org> <87r1r3ncwq.fsf@mail.linkov.net> <83a6xq995x.fsf@gnu.org> <831rj07c0j.fsf@gnu.org> <83v9gc5u94.fsf@gnu.org> <83sgbg5sg2.fsf@gnu.org> <83v9gb4g2a.fsf@gnu.org> <83a6xjx86z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37220"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43405@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 22:11:56 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKSAG-0009av-38 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 22:11:56 +0200 Original-Received: from localhost ([::1]:33866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKSAF-0000bo-4m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 16:11:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKS7S-0008GH-59 for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 16:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKS7R-0003XL-SL for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 16:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKS7R-0007SB-Nt for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 16:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2020 20:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43405 X-GNU-PR-Package: emacs Original-Received: via spool by 43405-submit@debbugs.gnu.org id=B43405.160071888128567 (code B ref 43405); Mon, 21 Sep 2020 20:09:01 +0000 Original-Received: (at 43405) by debbugs.gnu.org; 21 Sep 2020 20:08:01 +0000 Original-Received: from localhost ([127.0.0.1]:56446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKS6S-0007Qc-9N for submit@debbugs.gnu.org; Mon, 21 Sep 2020 16:08:01 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:39229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKS6R-0007QQ-6n for 43405@debbugs.gnu.org; Mon, 21 Sep 2020 16:07:59 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id b79so698794wmb.4 for <43405@debbugs.gnu.org>; Mon, 21 Sep 2020 13:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=1mdlhmeaB5/mPPXbailym9iXR2fPfNigylAq5LmEMxM=; b=pltG/WcAmEgAHOviATXwc2YmdHeU9mk0h/4feZjtg/Ai+RTqa0ch0ZRDdLB0Z926BT 5ufN+fz0PdgaQXT3GsHBb795hW92TIl7bQ66/SQ7sT7Qrio7/R+acNPmnr+5VnXRGMPX aaJ7Mq14SdEiHva74z8ZDd8h9fPSSiDaEfOW9VufZ6BVvkXCNjW5vnfzD6SJjAJj7bfX i1RCFaCEpzjnH1N5kwQNpZz+RDP1PoGWeOvdHH9sjp8wpIVbT7M6oRGH4xZKF+Zs/z77 JJ8AMSxu9VJbga1IuEsW4Q23uLDYGj4nHdYaprfH88/n5MLbHkZTQMaR5t3XC2p/S/X+ tzLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=1mdlhmeaB5/mPPXbailym9iXR2fPfNigylAq5LmEMxM=; b=X523Y3zlz/r2DbLcSDz37tQd84K81RizMf+dwtY7vkp3z6goF8pEtVtD5Y3u2VLQnr OUPCiCH6n4Aw33XiggqzuRBT8pHOUlAlRFGZilr10M4W1ib0b55dLLKIjfkSyaqdqfq/ 8BdKpOZiMpoKnzyOJAncMvG3RAtoGpBM7eXV6DzORfiqFBMAlkNo1MZZH+V5iY76aDVv EJhYjqojBjeomi/fWA4+1W/c6Bzmow3hQGbuPFT8cycrk6xJIUxhLVgEaQMiDlJr+O7z UkjikEgs+6mrUodjN2FA6yE7uYWXzk0kfoSRG657TVyhTAz/EFVBkGe0xseMKZQLJlOp eXSQ== X-Gm-Message-State: AOAM531PjFo8tjSlpmT5WAKs2yHSJu5oT5EDPPYB2bU3/8WXq7wenVhY fH2Db2mNqEdbcWJ5Ne6S4kw= X-Google-Smtp-Source: ABdhPJz2tgQjVeo/0tiqdCYL3BoQOZ3Hb+Erada4Y++OXOjpww852g0dtUKdCioPUZLR/ymSyzTOAQ== X-Received: by 2002:a1c:4054:: with SMTP id n81mr932255wma.81.1600718873364; Mon, 21 Sep 2020 13:07:53 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:90b8:9745:bf3d:1ff5]) by smtp.gmail.com with ESMTPSA id i11sm23137767wre.32.2020.09.21.13.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 13:07:52 -0700 (PDT) In-Reply-To: <83a6xjx86z.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Sep 2020 22:04:36 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188648 Archived-At: >>>>> On Mon, 21 Sep 2020 22:04:36 +0300, Eli Zaretskii said: >> Does that sound like it would work? Is there a more direct way of >> calculating that width? (I got lost in all the various move_to >> functions). Eli> I'd first try to repeat what we do for :align-to support: insert a Eli> stretch glyph of a suitable width, computed using it->last_visible_x Eli> and the width of the image for the button that has to be Eli> right-justified. See produce_stretch_glyph (except that most of it is Eli> not relevant, since :align-to supports a lot of functionalities). OK, that would work, but then you could only right justify a single item, which would be different from what you can do with the GTK tool bar (and I see no reason to restrict this to tool bar buttons, I see at least org-mode wants to right-justify headline tags) Robert