Re: would like a stock button without the text (GtkButton), or a stock GtkToolButton that gets button-pressed-event
Gergely Polonkai <[email protected]> Fri, 24 Jun 2016 10:04:18 +0200
| Newsgroups | gmane.comp.gnome.glade.user |
|---|---|
| Message-ID | <CACczBULJYkWkQZtZxbWnOWWA3uem7Ng59ZPXPSFexyn2vwfvdw@mail.gmail.com> |
--===============0841564049== Content-Type: multipart/alternative; boundary=001a114245423f32f80536019f4f --001a114245423f32f80536019f4f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, how about you create a simple button, and add an image inside? Buttons are containers, you can put anything inside (even a button, but that doesn=E2= =80=99t make much sense). Best, Gergely Gergely Polonkai [image: https://]about.me/gergely.polonkai <https://about.me/gergely.polonkai?promo=3Demail_sig&utm_source=3Demail_sig= &utm_medium=3Demail_sig&utm_campaign=3Dexternal_links> 2016-06-24 7:49 GMT+02:00 Dan Hitt <[email protected]>: > I would like to have a widget, created in glade, that acts like a > button in that it gets button-press-event, and has a stock image, but > does not have any text label. > > A GtkToolButton almost fits the bill, in that it has an image but no text= . > > However, if you put signal handlers on a GtkToolButton, you can see > when it is clicked, or gets a button-released-event, but the > button-pressed-events are unreliable. In my setup, they only show up > for double clicks. > > On the other hand a GtkButton certainly does get button-pressed-event > and button-released-event, but if it's a stock button, there does not > seem to be a way to tell it to just not show any text. > > I would like to do this entirely in glade, without writing any code, > and using only standard images. > > Is this possible? > > I'm using xubuntu 16.04, and the glade which comes with it which is 3.18.= 3. > > Thanks in advance for any clues, and i can provide more details if i'm > leaving something out here. > > dan > _______________________________________________ > Glade-users maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/glade-users > --001a114245423f32f80536019f4f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello,<div><br></div><div>how about you create a simple bu= tton, and add an image inside? Buttons are containers, you can put anything= inside (even a button, but that doesn=E2=80=99t make much sense).</div><di= v><br></div><div>Best,</div><div>Gergely</div></div><div class=3D"gmail_ext= ra"><br clear=3D"all"><div><div class=3D"gmail_signature" data-smartmail=3D= "gmail_signature"><div dir=3D"ltr"><table border=3D"0" cellpadding=3D"0" ce= llspacing=3D"0" style=3D"margin:0px;padding:0px;border:0px;outline:0px;font= -size:16px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verda= na,sans-serif;vertical-align:baseline;border-spacing:0px;color:rgb(51,51,51= );line-height:22.4px;text-align:center"><tbody style=3D"margin:0px;padding:= 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-fami= ly:inherit;vertical-align:baseline"><tr style=3D"margin:0px;padding:0px;bor= der:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inhe= rit;vertical-align:baseline"><td style=3D"padding:0px;border:0px;outline:0p= x;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:basel= ine;text-align:left;width:auto;height:20px">=C2=A0</td></tr><tr style=3D"ma= rgin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:= inherit;font-family:inherit;vertical-align:baseline"><td style=3D"padding:0= px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-a= lign:baseline;text-align:left;width:auto"><div style=3D"margin:0px;padding:= 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-fami= ly:inherit;vertical-align:baseline;line-height:0"><a href=3D"https://about.= me/gergely.polonkai?promo=3Demail_sig&utm_source=3Demail_sig&utm_me= dium=3Demail_sig&utm_campaign=3Dexternal_links" style=3D"margin:0px;pad= ding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font= -family:inherit;vertical-align:baseline;color:rgb(43,130,173);text-decorati= on:none;display:inline-block" target=3D"_blank"><table border=3D"0" cellpad= ding=3D"0" cellspacing=3D"0" style=3D"margin:0px;padding:0px;border:0px;out= line:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertica= l-align:baseline;border-spacing:0px"><tbody style=3D"margin:0px;padding:0px= ;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:= inherit;vertical-align:baseline"><tr style=3D"margin:0px;padding:0px;border= :0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit= ;vertical-align:baseline"><td align=3D"left" valign=3D"top" style=3D"paddin= g:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertica= l-align:top;width:auto;line-height:1"><div style=3D"margin:0px;padding:0px;= border:0px;outline:0px;font-weight:bold;font-style:inherit;font-size:18px;f= ont-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-= align:baseline;line-height:1;color:rgb(51,51,51)">Gergely Polonkai</div></t= d></tr><tr style=3D"margin:0px;padding:0px;border:0px;outline:0px;font-weig= ht:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline">= <td align=3D"left" valign=3D"top" style=3D"padding:0px;border:0px;outline:0= px;font-style:inherit;font-family:inherit;vertical-align:top;width:auto;lin= e-height:1"><div style=3D"margin:3px 0px 0px;padding:0px;border:0px;outline= :0px;font-weight:inherit;font-style:inherit;font-size:12px;font-family:prox= ima-nova-1,Proxima-Nova,Helvetica,Arial,sans-serif;vertical-align:baseline"= ><img alt=3D"https://" width=3D"0" height=3D"0" style=3D"margin:0px;padding= :0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-fam= ily:inherit;vertical-align:baseline;display:block;width:0px;height:0px;over= flow:hidden">about.me/gergely.polonkai</div></td></tr></tbody></table></a><= /div></td></tr><tr style=3D"margin:0px;padding:0px;border:0px;outline:0px;f= ont-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:ba= seline"><td style=3D"padding:0px;border:0px;outline:0px;font-style:inherit;= font-size:0px;font-family:inherit;vertical-align:baseline;text-align:left;w= idth:auto;height:20px"><img src=3D"https://about.me/t/sig?u=3Dgergely.polon= kai" width=3D"1" height=3D"1" style=3D"margin:0px;padding:0px;border:0px;ou= tline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertic= al-align:baseline;overflow:hidden"></td></tr></tbody></table></div></div></= div> <br><div class=3D"gmail_quote">2016-06-24 7:49 GMT+02:00 Dan Hitt <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">dan.hi= [email protected]</a>></span>:<br><blockquote class=3D"gmail_quote" style=3D"= margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would like= to have a widget, created in glade, that acts like a<br> button in that it gets button-press-event, and has a stock image, but<br> does not have any text label.<br> <br> A GtkToolButton almost fits the bill, in that it has an image but no text.<= br> <br> However, if you put signal handlers on a GtkToolButton, you can see<br> when it is clicked, or gets a button-released-event, but the<br> button-pressed-events are unreliable.=C2=A0 =C2=A0In my setup, they only sh= ow up<br> for double clicks.<br> <br> On the other hand a GtkButton certainly does get button-pressed-event<br> and button-released-event, but if it's a stock button, there does not<b= r> seem to be a way to tell it to just not show any text.<br> <br> I would like to do this entirely in glade, without writing any code,<br> and using only standard images.<br> <br> Is this possible?<br> <br> I'm using xubuntu 16.04, and the glade which comes with it which is 3.1= 8.3.<br> <br> Thanks in advance for any clues, and i can provide more details if i'm<= br> leaving something out here.<br> <br> dan<br> _______________________________________________<br> Glade-users maillist=C2=A0 -=C2=A0 <a href=3D"mailto:[email protected]= an.com">[email protected]</a><br> <a href=3D"http://lists.ximian.com/mailman/listinfo/glade-users" rel=3D"nor= eferrer" target=3D"_blank">http://lists.ximian.com/mailman/listinfo/glade-u= sers</a><br> </blockquote></div><br></div> --001a114245423f32f80536019f4f-- --===============0841564049== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Glade-users maillist - [email protected] http://lists.ximian.com/mailman/listinfo/glade-users --===============0841564049==--