diff options
author | Alan F <ajf@eth0.org.uk> | 2014-03-12 19:28:54 +0000 |
---|---|---|
committer | Alan F <ajf@eth0.org.uk> | 2014-03-12 19:28:54 +0000 |
commit | a348e739c004f544f4c7ae129b61aed905d49621 (patch) | |
tree | 99f33b86c7e374dd25ab5f6ebe19c44eedc28107 /src/hig.h | |
parent | 4504aabdfa2bd8612753d16dffaeb02b30218f39 (diff) |
sync hig.c from transmission-gtk to use GtkGrid instead of deprecated GtkTable, and remove most other usage of GtkTable.
Diffstat (limited to 'src/hig.h')
-rw-r--r-- | src/hig.h | 99 |
1 files changed, 46 insertions, 53 deletions
@@ -1,17 +1,17 @@ /* - * This file Copyright (C) 2007-2010 Mnemosyne LLC + * This file Copyright (C) Mnemosyne LLC * - * This file is licensed by the GPL version 2. Works owned by the - * Transmission project are granted a special exemption to clause 2(b) + * This file is licensed by the GPL version 2. Works owned by the + * Transmission project are granted a special exemption to clause 2 (b) * so that the bulk of its code can remain under the MIT license. * This exemption does not extend to derived works not owned by * the Transmission project. * - * $Id: hig.h 9868 2010-01-04 21:00:47Z charles $ + * $Id: hig.h 13625 2012-12-05 17:29:46Z jordan $ */ -#ifndef __HIG_H__ -#define __HIG_H__ +#ifndef GTR_HIG_H +#define GTR_HIG_H #include <gtk/gtk.h> @@ -20,67 +20,60 @@ *** see section 8.2.2, Visual Design > Window Layout > Dialogs. **/ -GtkWidget *hig_workarea_create(void); +GtkWidget* hig_workarea_create (void); -void hig_workarea_add_section_divider(GtkWidget * table, guint * row); +void hig_workarea_add_section_divider (GtkWidget * table, + guint * row); -void hig_workarea_add_section_title_widget(GtkWidget * t, - guint * row, GtkWidget * w); +void hig_workarea_add_section_title_widget (GtkWidget * t, + guint * row, + GtkWidget * w); -void hig_workarea_add_section_title(GtkWidget * table, - guint * row, - const char *section_title); +void hig_workarea_add_section_title (GtkWidget * table, + guint * row, + const char * section_title); -void hig_workarea_add_wide_tall_control(GtkWidget * table, - guint * row, GtkWidget * w); +void hig_workarea_add_wide_tall_control (GtkWidget * table, + guint * row, + GtkWidget * w); -void hig_workarea_add_wide_control(GtkWidget * table, - guint * row, GtkWidget * w); +void hig_workarea_add_wide_control (GtkWidget * table, + guint * row, + GtkWidget * w); -GtkWidget *hig_workarea_add_wide_checkbutton(GtkWidget * table, - guint * row, - const char *mnemonic_string, - gboolean is_active); +GtkWidget* hig_workarea_add_wide_checkbutton (GtkWidget * table, + guint * row, + const char * mnemonic_string, + gboolean is_active); -GtkWidget *hig_workarea_add_label(GtkWidget * table, - guint row, const char *mnemonic_string); +void hig_workarea_add_label_w (GtkWidget * table, + guint row, + GtkWidget * label_widget); -void hig_workarea_add_label_w(GtkWidget * table, - guint row, GtkWidget * label_widget); +GtkWidget* hig_workarea_add_tall_row (GtkWidget * table, + guint * row, + const char * mnemonic_string, + GtkWidget * control, + GtkWidget * mnemonic_or_null_for_control); -void hig_workarea_add_control(GtkWidget * table, - guint row, GtkWidget * control); +GtkWidget* hig_workarea_add_row (GtkWidget * table, + guint * row, + const char * mnemonic_string, + GtkWidget * control, + GtkWidget * mnemonic_or_null_for_control); -GtkWidget *hig_workarea_add_tall_row(GtkWidget * table, - guint * row, - const char *mnemonic_string, - GtkWidget * control, - GtkWidget * - mnemonic_or_null_for_control); +void hig_workarea_add_row_w (GtkWidget * table, + guint * row, + GtkWidget * label, + GtkWidget * control, + GtkWidget * mnemonic_or_null_for_control); -GtkWidget *hig_workarea_add_row(GtkWidget * table, - guint * row, - const char *mnemonic_string, - GtkWidget * control, - GtkWidget * mnemonic_or_null_for_control); - -void hig_workarea_add_row_w(GtkWidget * table, - guint * row, - GtkWidget * label, - GtkWidget * control, - GtkWidget * mnemonic_or_null_for_control); - -void hig_workarea_finish(GtkWidget * table, guint * row); - -void hig_message_dialog_set_text(GtkMessageDialog * dialog, - const char *primary, - const char *secondary); - -enum { +enum +{ GUI_PAD_SMALL = 3, GUI_PAD = 6, GUI_PAD_BIG = 12, GUI_PAD_LARGE = 12 }; -#endif /* __HIG_H__ */ +#endif /* GTR_HIG_H */ |