<p>I've inspected thunar's source it seems like 8 and 9 are enough for Unix. I don't know small and cross-platform gtk projects (i know wireshark 1.x and gimp), but you may try to search their code base for <code>button-press-event</code> and <code>->button\s?==\s?8</code>. If they use some other values too I'll commit a patch. I don't see any barriers for merging.</p>
<pre><code>static gboolean
thunar_standard_view_button_press_event (GtkWidget          *view,
                                         GdkEventButton     *event,
                                         ThunarStandardView *standard_view)
{
  GtkAction *action = NULL;

  if (G_LIKELY (event->type == GDK_BUTTON_PRESS))
    {
      /* determine the appropriate action ("back" for button 8, "forward" for button 9) */
      if (G_UNLIKELY (event->button == 8))
        action = gtk_ui_manager_get_action (standard_view->ui_manager, "/main-menu/go-menu/placeholder-go-history-actions/back");
      else if (G_UNLIKELY (event->button == 9))
        action = gtk_ui_manager_get_action (standard_view->ui_manager, "/main-menu/go-menu/placeholder-go-history-actions/forward");

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1648#issuecomment-336732442">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ6OTERFne79L8WitVYsOlngGhQxQks5sslOIgaJpZM4P50v0">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxso3KPTrW0uFnX3WzODtpXjMsqqks5sslOIgaJpZM4P50v0.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1648#issuecomment-336732442"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Yanpas in #1648: I've inspected thunar's source it seems like 8 and 9 are enough for Unix. I don't know small and cross-platform gtk projects (i know wireshark 1.x and gimp), but you may try to search their code base for `button-press-event` and `-\u003ebutton\\s?==\\s?8`. If they use some other values too I'll commit a patch. I don't see any barriers for merging.\r\n```\r\nstatic gboolean\r\nthunar_standard_view_button_press_event (GtkWidget          *view,\r\n                                         GdkEventButton     *event,\r\n                                         ThunarStandardView *standard_view)\r\n{\r\n  GtkAction *action = NULL;\r\n\r\n  if (G_LIKELY (event-\u003etype == GDK_BUTTON_PRESS))\r\n    {\r\n      /* determine the appropriate action (\"back\" for button 8, \"forward\" for button 9) */\r\n      if (G_UNLIKELY (event-\u003ebutton == 8))\r\n        action = gtk_ui_manager_get_action (standard_view-\u003eui_manager, \"/main-menu/go-menu/placeholder-go-history-actions/back\");\r\n      else if (G_UNLIKELY (event-\u003ebutton == 9))\r\n        action = gtk_ui_manager_get_action (standard_view-\u003eui_manager, \"/main-menu/go-menu/placeholder-go-history-actions/forward\");\r\n\r\n```"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1648#issuecomment-336732442"}}}</script>