Back to index

lshw  02.16
Functions
callbacks.h File Reference
#include <gtk/gtk.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void refresh_display (GtkMenuItem *menuitem, gpointer user_data)
void on_about1_activate (GtkMenuItem *menuitem, gpointer user_data)
void on_aboutclose_activate (GtkButton *button, gpointer user_data)
void on_version_realize (GtkWidget *widget, gpointer user_data)
void on_treeview1_row_activated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
void on_treeview2_row_activated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
void on_treeview3_row_activated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
void on_treeview3_cursor_changed (GtkTreeView *treeview, gpointer user_data)
void on_treeview1_cursor_changed (GtkTreeView *treeview, gpointer user_data)
void on_treeview2_cursor_changed (GtkTreeView *treeview, gpointer user_data)
void go_up (GtkToolButton *toolbutton, gpointer user_data)
void on_lshw_map (GtkWidget *widget, gpointer user_data)
void on_save_activate (GtkMenuItem *menuitem, gpointer user_data)
void on_savebutton_clicked (GtkToolButton *toolbutton, gpointer user_data)

Function Documentation

void go_up ( GtkToolButton *  toolbutton,
gpointer  user_data 
)

Definition at line 152 of file callbacks.c.

Here is the call graph for this function:

void on_about1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

Definition at line 29 of file callbacks.c.

{
  if(GTK_IS_WIDGET(about))
  {
    gtk_widget_show(about);
  }
}
void on_aboutclose_activate ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 41 of file callbacks.c.

{
  if(GTK_IS_WIDGET(about))
  {
    gtk_widget_hide(about);
  }
}
void on_lshw_map ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 161 of file callbacks.c.

Here is the call graph for this function:

void on_save_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

Definition at line 169 of file callbacks.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void on_savebutton_clicked ( GtkToolButton *  toolbutton,
gpointer  user_data 
)

Definition at line 178 of file callbacks.c.

{
  on_save_activate(NULL, NULL);
}

Here is the call graph for this function:

void on_treeview1_cursor_changed ( GtkTreeView *  treeview,
gpointer  user_data 
)

Definition at line 123 of file callbacks.c.

{
  change_selection(1, treeview);
}

Here is the call graph for this function:

void on_treeview1_row_activated ( GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
gpointer  user_data 
)

Definition at line 90 of file callbacks.c.

{
  browse(1, treeview);
}

Here is the call graph for this function:

void on_treeview2_cursor_changed ( GtkTreeView *  treeview,
gpointer  user_data 
)

Definition at line 132 of file callbacks.c.

{
  change_selection(2, treeview);
}

Here is the call graph for this function:

void on_treeview2_row_activated ( GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
gpointer  user_data 
)

Definition at line 101 of file callbacks.c.

{
  browse(2, treeview);
}

Here is the call graph for this function:

void on_treeview3_cursor_changed ( GtkTreeView *  treeview,
gpointer  user_data 
)

Definition at line 141 of file callbacks.c.

{
  change_selection(3, treeview);

  (void) &id;                                     // avoid warning "id defined but not used"
}

Here is the call graph for this function:

void on_treeview3_row_activated ( GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
gpointer  user_data 
)

Definition at line 112 of file callbacks.c.

{
  browse(3, treeview);
}

Here is the call graph for this function:

void on_version_realize ( GtkWidget *  widget,
gpointer  user_data 
)

Definition at line 53 of file callbacks.c.

{
  const char *latest = checkupdates();

  gtk_label_set_text(GTK_LABEL(widget), getpackageversion());

  if(latest)
  {
    if(strcmp(latest, getpackageversion()) != 0)
    {
      static GtkWidget *dialog = NULL;

      if(!GTK_IS_WIDGET(dialog))
      {
        dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(mainwindow),
                                  GTK_DIALOG_DESTROY_WITH_PARENT,
                                  GTK_MESSAGE_INFO,
                                  GTK_BUTTONS_CLOSE,
                                  "The latest version is <tt>%s</tt>.\n\nYou can visit <span foreground=\"blue\"><u>http://www.ezix.org/</u></span> for more information.",
                                  latest);

        gtk_window_set_title(GTK_WINDOW(dialog), "Update available");
        /* Destroy the dialog when the user responds to it (e.g. clicks a button) */
        g_signal_connect_swapped (dialog, "response",
                           G_CALLBACK (gtk_widget_destroy),
                           dialog);
      }

      gtk_widget_show(dialog);
    }
  }
}

Here is the call graph for this function:

void refresh_display ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

Definition at line 20 of file callbacks.c.

Here is the call graph for this function: