Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gtk-missing.c File Reference


Detailed Description

Missing functions in the GTK+.

Functions that should be in GTK+ 1.2 or GTK+ 2.x but are not.

Author:
Richard Eckart
Date:
2002-2003

#include "gui.h"
#include "gtk-missing.h"
#include "columns.h"
#include "if/gui_property.h"
#include "if/gui_property_priv.h"
#include "lib/glib-missing.h"
#include "lib/misc.h"
#include "lib/walloc.h"
#include "lib/override.h"

Defines

#define GTK_ITERATION_MAX   100 /* Don't spend too much time in GUI */

Functions

 RCSID ("$Id:gtk-missing.c, v 1.34 2005/12/19 15:31:20 cbiere Exp $")
gint gtk_paned_get_position (GtkPaned *paned)
 Get position of divider in a GtkPaned.

gint gtk_main_flush (void)
 Process all pending gtk events (id est draw now!).

void option_menu_select_item_by_data (GtkOptionMenu *option_menu, gconstpointer data)
 GtkOptionMenu.

GtkWidget * menu_new_item_with_data (GtkMenu *menu, const gchar *label_text, gpointer data)
 Add a new menu item to the GtkMenu "menu" with the label "label_text" and the data "data".

gpointer option_menu_get_selected_data (GtkOptionMenu *option_menu)
 Fetches the data set associated with the selected menu item in the GtkOptionMenu m.

GtkWidget * radiobutton_get_active_in_group (GtkRadioButton *rb)
 Given a radio button it returns a pointer to the active radio button in the group the given button is in.

void gtk_entry_printf (GtkEntry *entry, const gchar *format,...)
 printf into a gtk_entry.

void gtk_label_printf (GtkLabel *label, const gchar *format,...)
 printf into a GtkLabel.

void gtk_mass_widget_set_sensitive (GtkWidget *toplevel, const gchar *const list[], guint n, gboolean b)
 GtkWidget.

GSList * clist_collect_data (GtkCList *clist, gboolean allow_null, GCompareFunc cfn)
 Fetch data from the selection of a clist.

gdouble _gtk_spin_button_get_value (GtkSpinButton *spinbutton)
guint32 gtk_editable_get_value_as_uint32 (GtkEditable *editable)
void widget_init_choices (GtkWidget *widget, GtkSignalFunc func, prop_def_t *def, gpointer user_data)
 GtkCombo.


Define Documentation

#define GTK_ITERATION_MAX   100 /* Don't spend too much time in GUI */
 


Function Documentation

gdouble _gtk_spin_button_get_value GtkSpinButton *  spinbutton  ) 
 

GSList* clist_collect_data GtkCList *  clist,
gboolean  allow_null,
GCompareFunc  cfn
 

Fetch data from the selection of a clist.

Returns a GSList containing the user_data pointers from the selected rows. If allow_null is TRUE, the returned list may contain NULL pointers. If cfn != NULL, it will be used to determine whether two entries are equal and drop all duplicate items from the result list. Using cfn will significantly increase runtime.

guint32 gtk_editable_get_value_as_uint32 GtkEditable *  editable  ) 
 

void gtk_entry_printf GtkEntry *  entry,
const gchar *  format,
... 
 

printf into a gtk_entry.

void gtk_label_printf GtkLabel *  label,
const gchar *  format,
... 
 

printf into a GtkLabel.

gint gtk_main_flush void   ) 
 

Process all pending gtk events (id est draw now!).

Returns:
TRUE if gtk_main_quit has been called for the innermost mainloop. Aborts flush if gtk_main_quit has been called.

void gtk_mass_widget_set_sensitive GtkWidget *  toplevel,
const gchar *const  list[],
guint  n,
gboolean  b
 

GtkWidget.

Sets all to the given sentitivity state.

gtk_paned_get_position GtkPaned *  paned  ) 
 

Get position of divider in a GtkPaned.

(in GTK2)

GtkWidget* menu_new_item_with_data GtkMenu *  menu,
const gchar *  label_text,
gpointer  data
 

Add a new menu item to the GtkMenu "menu" with the label "label_text" and the data "data".

gpointer option_menu_get_selected_data GtkOptionMenu *  option_menu  ) 
 

Fetches the data set associated with the selected menu item in the GtkOptionMenu m.

void option_menu_select_item_by_data GtkOptionMenu *  option_menu,
gconstpointer  data
 

GtkOptionMenu.

GtkWidget* radiobutton_get_active_in_group GtkRadioButton *  rb  ) 
 

Given a radio button it returns a pointer to the active radio button in the group the given button is in.

Returns:
NULL if there is no active button.

RCSID "$Id:gtk-missing.  c,
v 1.34 2005/12/19 15:31:20 cbiere Exp $" 
 

void widget_init_choices GtkWidget *  widget,
GtkSignalFunc  func,
prop_def_t def,
gpointer  user_data
 

GtkCombo.

Each GtkItem has the choice number set as user_data.


Generated on Sun Feb 12 10:50:02 2006 for Gtk-Gnutella by doxygen 1.3.6