window: Remove unnecessary wrapper functions
These were only used by CcApplication, and at this level of the program we don't need to use any wrapper functions, since we're certain that the CcWindow is a GtkWindow subclass.
This commit is contained in:
parent
4f40a2fa33
commit
3632bc7dad
3 changed files with 2 additions and 18 deletions
|
@ -138,7 +138,7 @@ cc_application_command_line (GApplication *application,
|
|||
debug = g_variant_dict_contains (options, "verbose");
|
||||
cc_shell_log_set_debug (debug);
|
||||
|
||||
cc_window_show (self->priv->window);
|
||||
gtk_window_present (GTK_WINDOW (self->priv->window));
|
||||
|
||||
if (g_variant_dict_lookup (options, "search", "&s", &search_str))
|
||||
{
|
||||
|
@ -204,7 +204,7 @@ cc_application_activate (GApplication *application)
|
|||
{
|
||||
CcApplication *self = CC_APPLICATION (application);
|
||||
|
||||
cc_window_present (self->priv->window);
|
||||
gtk_window_present (GTK_WINDOW (self->priv->window));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -752,18 +752,6 @@ cc_window_new (GtkApplication *application)
|
|||
NULL);
|
||||
}
|
||||
|
||||
void
|
||||
cc_window_present (CcWindow *center)
|
||||
{
|
||||
gtk_window_present (GTK_WINDOW (center));
|
||||
}
|
||||
|
||||
void
|
||||
cc_window_show (CcWindow *center)
|
||||
{
|
||||
gtk_window_present (GTK_WINDOW (center));
|
||||
}
|
||||
|
||||
void
|
||||
cc_window_set_overview_page (CcWindow *center)
|
||||
{
|
||||
|
|
|
@ -32,10 +32,6 @@ G_DECLARE_FINAL_TYPE (CcWindow, cc_window, CC, WINDOW, GtkApplicationWindow)
|
|||
|
||||
CcWindow *cc_window_new (GtkApplication *application);
|
||||
|
||||
void cc_window_present (CcWindow *center);
|
||||
|
||||
void cc_window_show (CcWindow *center);
|
||||
|
||||
void cc_window_set_overview_page (CcWindow *center);
|
||||
|
||||
void cc_window_set_search_item (CcWindow *center,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue