| Index: chrome/browser/gtk/gtk_skinny_button.h
|
| ===================================================================
|
| --- chrome/browser/gtk/gtk_skinny_button.h (revision 0)
|
| +++ chrome/browser/gtk/gtk_skinny_button.h (revision 0)
|
| @@ -0,0 +1,54 @@
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_GTK_GTK_SKINNY_BUTTON_H_
|
| +#define CHROME_BROWSER_GTK_GTK_SKINNY_BUTTON_H_
|
| +
|
| +#include <gdk/gdk.h>
|
| +#include <gtk/gtk.h>
|
| +
|
| +G_BEGIN_DECLS
|
| +
|
| +#define GTK_TYPE_SKINNY_BUTTON (gtk_skinny_button_get_type ())
|
| +#define GTK_SKINNY_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
|
| + GTK_TYPE_SKINNY_BUTTON, \
|
| + GtkSkinnyButton))
|
| +#define GTK_SKINNY_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
|
| + GTK_TYPE_SKINNY_BUTTON, \
|
| + GtkSkinnyButtonClass))
|
| +#define GTK_IS_SKINNY_BUTTON(obj) \
|
| + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SKINNY_BUTTON))
|
| +#define GTK_IS_SKINNY_BUTTON_CLASS(klass) \
|
| + (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SKINNY_BUTTON))
|
| +#define GTK_SKINNY_BUTTON_GET_CLASS(obj) \
|
| + (G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
| + GTK_TYPE_SKINNY_BUTTON, \
|
| + GtkSkinnyButton))
|
| +
|
| +typedef struct _GtkSkinnyButton GtkSkinnyButton;
|
| +typedef struct _GtkSkinnyButtonClass GtkSkinnyButtonClass;
|
| +
|
| +struct _GtkSkinnyButton {
|
| + GtkButton button;
|
| + GdkEventButton* click_button_event;
|
| +};
|
| +
|
| +struct _GtkSkinnyButtonClass {
|
| + GtkButtonClass parent_class;
|
| +};
|
| +
|
| +// Make a link button with display text |text|.
|
| +GtkWidget* gtk_skinny_button_new_with_label(const char* text);
|
| +
|
| +// Call this from within a "clicked" handler to get the release event that
|
| +// triggered the click. It will return NULL if the click was triggered by a
|
| +// keyboard event.
|
| +const GdkEventButton* gtk_skinny_button_get_event_for_click(
|
| + GtkSkinnyButton* button);
|
| +
|
| +GType gtk_skinny_button_get_type();
|
| +
|
| +G_END_DECLS
|
| +
|
| +#endif // CHROME_BROWSER_GTK_GTK_SKINNY_BUTTON_H_
|
|
|
| Property changes on: chrome/browser/gtk/gtk_skinny_button.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|